diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2013-09-01 17:42:19 -0700 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2013-09-01 17:46:02 -0700 |
commit | e3b1c2dea0cab4ca78b437b6db678e90e009fc02 (patch) | |
tree | d194dbcc5786652f9e812d632afe0f574624b112 | |
parent | 5cbac5bf2353d775ee652fe7af6713a6fda417e7 (diff) | |
download | mutter-e3b1c2dea0cab4ca78b437b6db678e90e009fc02.tar.gz |
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
-rw-r--r-- | src/core/meta-idle-monitor.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |