summaryrefslogtreecommitdiff
path: root/Xi
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-05-27 14:19:45 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-06-08 13:57:03 +1000
commit0aa45c5c53e2e7ba0723f5a12c1a5f5d4baab933 (patch)
tree16778d04c5963545dc2c6f605fb69fa70252f18a /Xi
parenta1beae635caf81ec31a8998687df0ae92b505fda (diff)
Xi: use temporary variable for filter.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'Xi')
-rw-r--r--Xi/exevents.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Xi/exevents.c b/Xi/exevents.c
index 3b0411d61..042ea69bb 100644
--- a/Xi/exevents.c
+++ b/Xi/exevents.c
@@ -886,6 +886,7 @@ ProcessRawEvent(RawDeviceEvent *ev, DeviceIntPtr device)
else { /* deliver to all root windows */
xEvent *xi;
int i;
+ int filter;
i = EventToXI2((InternalEvent*)ev, (xEvent**)&xi);
if (i != Success)
@@ -895,9 +896,11 @@ ProcessRawEvent(RawDeviceEvent *ev, DeviceIntPtr device)
return;
}
+ filter = GetEventFilter(device, xi);
+
for (i = 0; i < screenInfo.numScreens; i++)
DeliverEventsToWindow(device, screenInfo.screens[i]->root, xi, 1,
- GetEventFilter(device, xi), NULL);
+ filter, NullGrab);
free(xi);
}
}