summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mate-session/gsm-presence.c3
1 files changed, 2 insertions, 1 deletions
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,