Skip to content

Commit

Permalink
Merge pull request #112 from 01micko/examples-bugfix2
Browse files Browse the repository at this point in the history
bugfix: allow examples to work - closes #110
  • Loading branch information
01micko authored Dec 14, 2021
2 parents 100afa6 + 73271c7 commit 84cd770
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 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 (!attr)
goto layer_set;

if (getenv("GDK_BACKEND") && strcmp(getenv("GDK_BACKEND"), "wayland") != 0)
goto layer_set;

Expand Down

0 comments on commit 84cd770

Please sign in to comment.