From e55227bb40f8e8d579bdf92df8ac13c45cdb8502 Mon Sep 17 00:00:00 2001 From: William Wold Date: Sun, 13 Sep 2020 23:31:47 -0700 Subject: Use gdk_set_allowed_backends () --- src/daemon/mnd-daemon.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/daemon') 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)) -- cgit v1.2.1