mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-28 21:33:09 +00:00
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>
This commit is contained in:
parent
f7f85f6965
commit
717a961528
2 changed files with 2 additions and 2 deletions
|
|
@ -3929,7 +3929,7 @@ ProcessPointerEvent (xEvent *xE, DeviceIntPtr mouse, int count)
|
|||
if (xE->u.u.detail == 0)
|
||||
return;
|
||||
filters[mouse->id][Motion_Filter(butc)] = MotionNotify;
|
||||
if (!butc->state && mouse->deviceGrab.fromPassiveGrab)
|
||||
if (!butc->buttonsDown && mouse->deviceGrab.fromPassiveGrab)
|
||||
deactivateGrab = TRUE;
|
||||
break;
|
||||
default:
|
||||
|
|
|
|||
Loading…
Reference in a new issue