[PATCH 6/8] Xi: use temporary variable for filter.
Peter Hutterer
peter.hutterer at who-t.net
Thu May 26 22:13:56 PDT 2011
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
Xi/exevents.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/Xi/exevents.c b/Xi/exevents.c
index 3b0411d..042ea69 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);
}
}
--
1.7.5.1
More information about the xorg-devel
mailing list