summaryrefslogtreecommitdiff
path: root/xserver/Xi/exevents.c
diff options
context:
space:
mode:
Diffstat (limited to 'xserver/Xi/exevents.c')
-rw-r--r--xserver/Xi/exevents.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xserver/Xi/exevents.c b/xserver/Xi/exevents.c
index 9d4886212..94b9983bd 100644
--- a/xserver/Xi/exevents.c
+++ b/xserver/Xi/exevents.c
@@ -1901,7 +1901,7 @@ ProcessDeviceEvent(InternalEvent *ev, DeviceIntPtr device)
* nested) to clients. */
if (event->source_type == EVENT_SOURCE_FOCUS)
return;
- if (!grab && CheckDeviceGrabs(device, event, 0))
+ if (!grab && CheckDeviceGrabs(device, ev, 0))
return;
break;
case ET_KeyRelease:
@@ -1914,7 +1914,7 @@ ProcessDeviceEvent(InternalEvent *ev, DeviceIntPtr device)
if (b->map[key] == 0) /* there's no button 0 */
return;
event->detail.button = b->map[key];
- if (!grab && CheckDeviceGrabs(device, event, 0)) {
+ if (!grab && CheckDeviceGrabs(device, ev, 0)) {
/* if a passive grab was activated, the event has been sent
* already */
return;