summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWilliam Wold <[email protected]>2020-09-13 23:31:47 -0700
committerraveit65 <[email protected]>2020-10-24 16:49:14 +0200
commite55227bb40f8e8d579bdf92df8ac13c45cdb8502 (patch)
tree4f92268c5e1de2efac43626a879225a1cfa723b9 /src
parent6224c6d9e636186105fb08eb4724d499b1264fb0 (diff)
downloadmate-notification-daemon-e55227bb40f8e8d579bdf92df8ac13c45cdb8502.tar.bz2
mate-notification-daemon-e55227bb40f8e8d579bdf92df8ac13c45cdb8502.tar.xz
Use gdk_set_allowed_backends ()
Diffstat (limited to 'src')
-rw-r--r--src/daemon/mnd-daemon.c8
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))