diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-08-07 10:49:33 +0930 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-08-07 10:49:33 +0930 |
commit | a0b87f87fb8753955505958bf3d438eef191302d (patch) | |
tree | 6743daf60cec401a8918f0530bf5ada30cba817f /dix/grabs.c | |
parent | 9eddede039f6cbcc323b7e3e4e841c43d3ed4f43 (diff) |
dix: check for core event to determine if grab is a core grab (CreateGrab).
Checking for VCP/VCK is simply not a safe way to check if a grab is a core grab.
Diffstat (limited to 'dix/grabs.c')
-rw-r--r-- | dix/grabs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/dix/grabs.c b/dix/grabs.c index af471ebb3..9150c3c14 100644 --- a/dix/grabs.c +++ b/dix/grabs.c @@ -87,8 +87,7 @@ CreateGrab( return (GrabPtr)NULL; grab->resource = FakeClientID(client); grab->device = device; - grab->coreGrab = ((device == inputInfo.keyboard) || - (device == inputInfo.pointer)); + grab->coreGrab = (type < LASTEvent); grab->window = window; grab->eventMask = eventMask; grab->deviceMask = 0; |