diff --git a/src/widget_window.c b/src/widget_window.c index 67b2fcd..1c53047 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 (!attr) + goto layer_set; + if (getenv("GDK_BACKEND") && strcmp(getenv("GDK_BACKEND"), "wayland") != 0) goto layer_set;