diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-03-08 17:17:23 +1030 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-03-08 17:17:23 +1030 |
commit | ceca5670fee99b5feceaa2453f1ac32d1bfe7dcd (patch) | |
tree | 61b135c3d494c4588cacbcd05329032da92ef82f /Xi/setdval.c | |
parent | 537bc2ead4d154552cbdc3a19e335f82af63792c (diff) |
dix: Each device needs to differ between a core grab and an XI grab,
otherwise a Xi grab may overwrite or release a core grab.
Replace grab and associates with coreGrab and deviceGrab structures,
adjust rest of dix/Xi/etc to compile.
xfree86: Don't check for core devices, we'll have the virtual ones anyway.
If we check, the first mouse device is duplicated and sends
double events.
Diffstat (limited to 'Xi/setdval.c')
-rw-r--r-- | Xi/setdval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Xi/setdval.c b/Xi/setdval.c index 958b2ac21..ce9b02d2f 100644 --- a/Xi/setdval.c +++ b/Xi/setdval.c @@ -125,7 +125,7 @@ ProcXSetDeviceValuators(register ClientPtr client) return Success; } - if ((dev->grab) && !SameClient(dev->grab, client)) + if ((dev->deviceGrab.grab) && !SameClient(dev->deviceGrab.grab, client)) rep.status = AlreadyGrabbed; else rep.status = SetDeviceValuators(client, dev, (int *)&stuff[1], |