From 1deaea538427f2dc9d3afdc37b9daf57c15a46cd Mon Sep 17 00:00:00 2001 From: infirit Date: Fri, 7 Nov 2014 13:49:36 +0100 Subject: gsm: Refuse to install an idle timeout of 0 seconds This was making gnome-screensaver fade and blank the screen as soon as you stopped moving the mouse/using the keyboard when the timeout is set to 0. Based on gnome-session commit: be627c10409129408e135925d5dd83ae2d554fa0 From: Rodrigo Moya Original bug: https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/863038 --- mate-session/gsm-presence.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mate-session/gsm-presence.c b/mate-session/gsm-presence.c index 8e16639..f87948d 100644 --- a/mate-session/gsm-presence.c +++ b/mate-session/gsm-presence.c @@ -167,7 +167,8 @@ reset_idle_watch (GsmPresence *presence) } if (! presence->priv->screensaver_active - && presence->priv->idle_enabled) { + && presence->priv->idle_enabled + && presence->priv->idle_timeout > 0) { g_debug ("GsmPresence: adding idle watch"); presence->priv->idle_watch_id = gs_idle_monitor_add_watch (presence->priv->idle_monitor, -- cgit v1.2.1