diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2012-12-07 09:11:13 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2012-12-17 15:03:39 +1000 |
commit | 88a2cccc37cac4e171f9bfc020017ddfa66ae417 (patch) | |
tree | ef2491bded792e12f03c7508e7201ad4ea37874a /Xi/exevents.c | |
parent | 353aa515922e1095047161ec47a2722772218f20 (diff) |
Xi: if the device is currently grabbed, flag the barrier event
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Jasper St. Pierre <jstpierre@mecheye.net>
Diffstat (limited to 'Xi/exevents.c')
-rw-r--r-- | Xi/exevents.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Xi/exevents.c b/Xi/exevents.c index a7ec0c415..f025dd1ec 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); |