diff options
Diffstat (limited to 'src/daemon')
-rw-r--r-- | src/daemon/mnd-daemon.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/daemon/mnd-daemon.c b/src/daemon/mnd-daemon.c index 4e52541..f5d33db 100644 --- a/src/daemon/mnd-daemon.c +++ b/src/daemon/mnd-daemon.c @@ -78,6 +78,14 @@ int main (int argc, char *argv[]) { NotifyDaemon *daemon; + #if defined(HAVE_X11) && defined(HAVE_WAYLAND) + gdk_set_allowed_backends ("wayland,x11"); + #elif defined(HAVE_WAYLAND) + gdk_set_allowed_backends ("wayland"); + #else + gdk_set_allowed_backends ("x11"); + #endif + gtk_init(&argc, &argv); if (!parse_arguments (&argc, &argv)) |