summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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,