From ca5063543d30137e6989ac083e8fcc1080df0968 Mon Sep 17 00:00:00 2001 From: 01micko <01micko@gmail.com> Date: Sun, 12 Dec 2021 21:17:54 +1000 Subject: [PATCH] widget_window.c: fix cage/X bug closes #106 --- src/widget_window.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/widget_window.c b/src/widget_window.c index b20d9d2..67b2fcd 100644 --- a/src/widget_window.c +++ b/src/widget_window.c @@ -98,6 +98,9 @@ GtkWidget *widget_window_create( widget = gtk_window_new(GTK_WINDOW_TOPLEVEL); #if HAVE_GTK_LAYER_SHELL + if (getenv("GDK_BACKEND") && strcmp(getenv("GDK_BACKEND"), "wayland") != 0) + goto layer_set; + GtkLayerShellLayer layer = GTK_LAYER_SHELL_LAYER_ENTRY_NUMBER; value = get_tag_attribute(attr, "layer"); @@ -167,6 +170,7 @@ GtkWidget *widget_window_create( } } +layer_set: #endif /* Set a default window title */