summaryrefslogtreecommitdiff
path: root/Xi/ungrdev.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2007-05-14 12:34:53 +0930
committerPeter Hutterer <peter@cs.unisa.edu.au>2007-05-14 12:34:53 +0930
commit5c680e94938c16e04a4349715cf11796b80400db (patch)
tree256c57eea6c0fc52a09c6d07079a5df772b19c76 /Xi/ungrdev.c
parent4dc973f08c54294e06bc831bd2839fd3aa24ecfb (diff)
Remove double-grab option. We only want one grab per device.
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;
}