diff options
author | Bastien Nocera <hadess@hadess.net> | 2013-11-04 18:43:07 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2013-11-04 18:46:36 +0100 |
commit | 0d9beb73ea40d7171f2865a73633abf1d6ba328b (patch) | |
tree | 5a6572c85a965f42625d77620e3ba378fb838fee | |
parent | a2634798049e29a18f1d02f3c38513fc883f5560 (diff) | |
download | gnome-settings-daemon-0d9beb73ea40d7171f2865a73633abf1d6ba328b.tar.gz |
xsettings: Fix thinko that led to animations being disabled
When VNC is in use, animations are disabled, thus ->disabled has
the same value as vnc_in_use, not the opposite.
Spotted by Yosef Or Boczko <yoseforb@gmail.com>, with help from
Jasper St. Pierre <jstpierre@mecheye.net>
-rw-r--r-- | plugins/xsettings/gsd-remote-display-manager.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/xsettings/gsd-remote-display-manager.c b/plugins/xsettings/gsd-remote-display-manager.c index c876c4a0..e6866944 100644 --- a/plugins/xsettings/gsd-remote-display-manager.c +++ b/plugins/xsettings/gsd-remote-display-manager.c @@ -80,11 +80,11 @@ update_property_from_variant (GsdRemoteDisplayManager *manager, GVariant *variant) { manager->priv->vnc_in_use = g_variant_get_boolean (variant); + manager->priv->disabled = manager->priv->vnc_in_use; g_debug ("%s because of remote display status (vnc: %d)", - !manager->priv->vnc_in_use ? "Enabling" : "Disabling", + manager->priv->disabled ? "Disabling" : "Enabling", manager->priv->vnc_in_use); - manager->priv->disabled = !manager->priv->vnc_in_use; g_object_notify (G_OBJECT (manager), "force-disable-animations"); } |