summaryrefslogtreecommitdiff
path: root/Xi/ungrdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'Xi/ungrdev.c')
-rw-r--r--Xi/ungrdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Xi/ungrdev.c b/Xi/ungrdev.c
index b2b71694d..e056ce688 100644
--- a/Xi/ungrdev.c
+++ b/Xi/ungrdev.c
@@ -111,7 +111,7 @@ ProcXUngrabDevice(ClientPtr client)
time = ClientTimeToServerTime(stuff->time);
if ((CompareTimeStamps(time, currentTime) != LATER) &&
(CompareTimeStamps(time, dev->deviceGrab.grabTime) != EARLIER) &&
- (grab) && SameClient(grab, client))
+ (grab) && SameClient(grab, client) && !grab->coreGrab)
(*dev->deviceGrab.DeactivateGrab) (dev);
return Success;
}