diff options
author | Thomas Jaeger <ThJaeger@gmail.com> | 2008-12-20 16:17:02 +0100 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-01-16 11:46:26 +1000 |
commit | 717a961528ec69a6e630d536e15568670e0b398a (patch) | |
tree | 8aa800fc1d78a394ac17f1cf36c98fc3a1ae0e50 /Xi | |
parent | f7f85f696570541e2dd43462675de9e6ee46f545 (diff) |
Don't release grabs unless all buttons are up
Previously, only buttons <= 5 would count here, but the core protocol
allows for 255 buttons.
http://lists.freedesktop.org/archives/xorg/2009-January/042092.html
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'Xi')
-rw-r--r-- | Xi/exevents.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Xi/exevents.c b/Xi/exevents.c index f3f9d390b..6bf9e5689 100644 --- a/Xi/exevents.c +++ b/Xi/exevents.c @@ -1118,7 +1118,7 @@ ProcessOtherEvent(xEventPtr xE, DeviceIntPtr device, int count) xE->u.u.detail = key; return; } - if (!b->state && device->deviceGrab.fromPassiveGrab) + if (!b->buttonsDown && device->deviceGrab.fromPassiveGrab) deactivateDeviceGrab = TRUE; } |