From 73271c771ef2541ac97e899f60b7ea6ca0f5ac37 Mon Sep 17 00:00:00 2001 From: 01micko <01micko@gmail.com> Date: Tue, 14 Dec 2021 19:15:18 +1000 Subject: [PATCH] bugfix: allow examples to work - closes #110 --- src/widget_window.c | 3 +++ 1 file changed, 3 insertions(+) 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;