summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2023-08-20 22:10:53 -0400
committerraveit65 <[email protected]>2023-08-22 17:49:45 +0200
commitfd8aa7ac6c43fd97a21609d1bf0fb23e73d78820 (patch)
tree86100546940c7c582e018a29e55a6adaee57fe73 /src
parent1ee57c16a495e5908052d1de3de139fe6a8387bc (diff)
downloadmate-notification-daemon-fd8aa7ac6c43fd97a21609d1bf0fb23e73d78820.tar.bz2
mate-notification-daemon-fd8aa7ac6c43fd97a21609d1bf0fb23e73d78820.tar.xz
wayland: do not attempt to connect to x11 screensaver
Diffstat (limited to 'src')
-rw-r--r--src/daemon/daemon.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c
index a9b63f5..59b4ec6 100644
--- a/src/daemon/daemon.c
+++ b/src/daemon/daemon.c
@@ -1129,6 +1129,9 @@ static gboolean screensaver_active(GtkWidget* nw)
GVariant *variant;
GDBusProxy *proxy = NULL;
+ if (!(GDK_IS_X11_DISPLAY (gdk_display_get_default ())))
+ return FALSE;
+
proxy = g_dbus_proxy_new_for_bus_sync(G_BUS_TYPE_SESSION,
G_DBUS_PROXY_FLAGS_NONE,
NULL,