From afb80a5762d0580ab970c7050b2daee23aa360cb Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Tue, 27 Apr 2021 22:43:46 +0200 Subject: presence: Fix error detection when syncing initial screensaver state The preview bugfix in commit f51153498246 was incorrect as it tested for the variant to be non-NULL to detect an error (rather than NULL). Fix this. --- gnome-session/gsm-presence.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnome-session/gsm-presence.c b/gnome-session/gsm-presence.c index 0e012c69..f4aa4889 100644 --- a/gnome-session/gsm-presence.c +++ b/gnome-session/gsm-presence.c @@ -239,7 +239,7 @@ screensaver_get_active_cb (GDBusProxy *screensaver_proxy, gboolean is_active; data = g_dbus_proxy_call_finish (screensaver_proxy, res, &error); - if (data) { + if (!data) { if (error) { g_warning ("Could not retrieve current screensaver active state: %s", error->message); -- cgit v1.2.1