Skip to content

Commit 100afa6

Browse files
author
Mick Amadio
authored
Merge pull request #109 from 01micko/cage-bugfix3
widget_window.c: fix cage/X bug closes #106
2 parents b7046be + ca50635 commit 100afa6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/widget_window.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ GtkWidget *widget_window_create(
9898
widget = gtk_window_new(GTK_WINDOW_TOPLEVEL);
9999

100100
#if HAVE_GTK_LAYER_SHELL
101+
if (getenv("GDK_BACKEND") && strcmp(getenv("GDK_BACKEND"), "wayland") != 0)
102+
goto layer_set;
103+
101104
GtkLayerShellLayer layer = GTK_LAYER_SHELL_LAYER_ENTRY_NUMBER;
102105

103106
value = get_tag_attribute(attr, "layer");
@@ -167,6 +170,7 @@ GtkWidget *widget_window_create(
167170
}
168171
}
169172

173+
layer_set:
170174
#endif
171175

172176
/* Set a default window title */

0 commit comments

Comments
 (0)