diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2011-05-27 14:19:45 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-06-08 13:57:03 +1000 |
commit | 0aa45c5c53e2e7ba0723f5a12c1a5f5d4baab933 (patch) | |
tree | 16778d04c5963545dc2c6f605fb69fa70252f18a /Xi | |
parent | a1beae635caf81ec31a8998687df0ae92b505fda (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.c | 5 |
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); } } |