mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
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
This commit is contained in:
parent
5cbac5bf23
commit
e3b1c2dea0
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user