summaryrefslogtreecommitdiff
path: root/Xi/ungrdev.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-04-12 16:19:45 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-04-19 22:28:08 +1000
commit09f9a86077f0058ce88ee9b3df5d1ab854eeca43 (patch)
treeb5a4f3e2fa69551c53fbedda8ce315af12ac80d7 /Xi/ungrdev.c
parent7fbe1b7d63c94b344e8ff9d09c0bb162ca104909 (diff)
input: replace GrabRec's coreGrab field with grabtype.
Don't allow grabs of different types to override each other. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
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 b5b572a8e..a09c3d024 100644
--- a/Xi/ungrdev.c
+++ b/Xi/ungrdev.c
@@ -104,7 +104,7 @@ ProcXUngrabDevice(ClientPtr client)
time = ClientTimeToServerTime(stuff->time);
if ((CompareTimeStamps(time, currentTime) != LATER) &&
(CompareTimeStamps(time, dev->deviceGrab.grabTime) != EARLIER) &&
- (grab) && SameClient(grab, client) && !grab->coreGrab)
+ (grab) && SameClient(grab, client) && grab->grabtype == GRABTYPE_XI)
(*dev->deviceGrab.DeactivateGrab) (dev);
return Success;
}