From d043d9943bb8656d855b80f60ec883606e4c0358 Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Fri, 14 Feb 2014 10:10:20 -0500 Subject: [PATCH] idle-monitor: avoid XSyncBadAlarm X error If we fail to find the IDLETIME counter, then the alarm variable will be uninitialised. Most code paths are careful to check this before submitting XSync calls, but there is one check missing. https://bugzilla.gnome.org/show_bug.cgi?id=724364 --- src/core/meta-idle-monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/meta-idle-monitor.c b/src/core/meta-idle-monitor.c index 7712cc78d..c99fc1050 100644 --- a/src/core/meta-idle-monitor.c +++ b/src/core/meta-idle-monitor.c @@ -535,7 +535,7 @@ make_watch (MetaIdleMonitor *monitor, watch->timeout_source = source; } } - else + else if (monitor->user_active_alarm != None) { if (timeout_msec != 0) {