[PATCH 23/29] Xi: if the device is currently grabbed, flag the barrier event

Peter Hutterer peter.hutterer at who-t.net
Tue Dec 11 23:19:16 PST 2012


Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 Xi/exevents.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Xi/exevents.c b/Xi/exevents.c
index a7ec0c4..f025dd1 100644
--- a/Xi/exevents.c
+++ b/Xi/exevents.c
@@ -1655,6 +1655,9 @@ ProcessBarrierEvent(InternalEvent *e, DeviceIntPtr dev)
     if (dixLookupWindow(&pWin, be->window, serverClient, DixReadAccess) != Success)
         return;
 
+    if (grab)
+        be->flags |= XIBarrierDeviceIsGrabbed;
+
     rc = EventToXI2(e, &ev);
     if (rc != Success) {
         ErrorF("[Xi] event conversion from %s failed with code %d\n", __func__, rc);
-- 
1.8.0.1



More information about the xorg-devel mailing list