We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31d939d commit ea694a3Copy full SHA for ea694a3
1 file changed
plugins/background/main.c
@@ -25,15 +25,24 @@
25
static void
26
pre_gtk_init (void)
27
{
28
- if (!csd_check_layer_shell_support ()) {
29
- g_message ("csd-background: wlr-layer-shell not supported, using X11 backend");
+ if (csd_check_layer_shell_support ()) {
+ g_message ("csd-background: using Wayland backend, gtk-layer-shell supported");
30
+ } else {
31
+ g_message ("csd-background: not a Wayland session or wlr-layer-shell protocol not supported, using X11 backend");
32
gdk_set_allowed_backends ("x11");
33
}
34
35
36
#define PRE_GTK_INIT pre_gtk_init
37
#define FORCE_X11_BACKEND FALSE
38
#else
39
+static void
40
+pre_gtk_init (void)
41
+{
42
+ g_message ("csd-background: gtk-layer-shell not built, using X11 backend");
43
+}
44
+
45
+#define PRE_GTK_INIT pre_gtk_init
46
#define FORCE_X11_BACKEND TRUE
47
#endif
48
0 commit comments