Skip to content

Commit

Permalink
Merge pull request #109 from 01micko/cage-bugfix3
Browse files Browse the repository at this point in the history
widget_window.c: fix cage/X bug closes #106
  • Loading branch information
01micko authored Dec 12, 2021
2 parents b7046be + ca50635 commit 100afa6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/widget_window.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -167,6 +170,7 @@ GtkWidget *widget_window_create(
}
}

layer_set:
#endif

/* Set a default window title */
Expand Down

0 comments on commit 100afa6

Please sign in to comment.