From 22ca820c4442a4fc57776cfa564bf15d6140f60e Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Sun, 1 Sep 2013 17:42:19 -0700 Subject: [PATCH] idle-monitor: fix event propagation to devices device_id_max is set to the device_id in ensure_device_monitor(), but we will loop only to (device_id_max - 1) when propagating the sync XEvent down, missing the device correspondng to device_id_max. https://bugzilla.gnome.org/show_bug.cgi?id=707250 --- 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 4301b003e..01c4cb303 100644 --- a/src/core/meta-idle-monitor.c +++ b/src/core/meta-idle-monitor.c @@ -230,7 +230,7 @@ meta_idle_monitor_handle_xevent_all (XEvent *xevent) { int i; - for (i = 0; i < device_id_max; i++) + for (i = 0; i <= device_id_max; i++) if (device_monitors[i]) meta_idle_monitor_handle_xevent (device_monitors[i], (XSyncAlarmNotifyEvent*)xevent); }