From fd8aa7ac6c43fd97a21609d1bf0fb23e73d78820 Mon Sep 17 00:00:00 2001 From: lukefromdc Date: Sun, 20 Aug 2023 22:10:53 -0400 Subject: wayland: do not attempt to connect to x11 screensaver --- src/daemon/daemon.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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, -- cgit v1.2.1