- We believe Plasma support layer shell now. Correct me if I'm wrong

This commit is contained in:
trigg 2022-03-31 17:45:19 +00:00
parent e359b428ee
commit 7d5aa7f6cb

View file

@ -124,13 +124,13 @@ class OverlayWindow(Gtk.Window):
def set_wayland_state(self):
"""
If wayland is in use then attempt to set up a GtkLayerShell
I have no idea how this should register a fail for Weston/KDE/Gnome
I have no idea how this should register a fail for Weston/Gnome
"""
if self.is_wayland:
if not GtkLayerShell.is_supported():
log.info(
"GTK Layer Shell is not supported on this wayland compositor")
log.info("Currently not possible: Gnome, Plasma, Weston")
log.info("Currently not possible: Gnome, Weston")
sys.exit(0)
GtkLayerShell.init_for_window(self)
GtkLayerShell.set_layer(self, GtkLayerShell.Layer.OVERLAY)