diff --git a/src/core/meta-idle-monitor.c b/src/core/meta-idle-monitor.c index 0d841c4e1..00b6ddb8e 100644 --- a/src/core/meta-idle-monitor.c +++ b/src/core/meta-idle-monitor.c @@ -224,7 +224,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); }