summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Berg <bberg@redhat.com>2021-04-27 22:43:46 +0200
committerBenjamin Berg <bberg@redhat.com>2021-04-27 22:43:46 +0200
commitafb80a5762d0580ab970c7050b2daee23aa360cb (patch)
tree54c30ac558cad1027f62a952bea6a8cce776caf8
parenta576f4db6352916dda0052a01460c75051733fc7 (diff)
downloadgnome-session-afb80a5762d0580ab970c7050b2daee23aa360cb.tar.gz
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.
-rw-r--r--gnome-session/gsm-presence.c2
1 files changed, 1 insertions, 1 deletions
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);