summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Xi/exevents.c3
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);