dix/events: reuse grab pointer value
This commit is contained in:
parent
35e5a76cc1
commit
2118e4471b
|
@ -1573,7 +1573,7 @@ DeactivatePointerGrab(DeviceIntPtr mouse)
|
||||||
emulate a ButtonRelease here. So pretend the listener
|
emulate a ButtonRelease here. So pretend the listener
|
||||||
already has the end event */
|
already has the end event */
|
||||||
if (grab->grabtype == CORE || grab->grabtype == XI ||
|
if (grab->grabtype == CORE || grab->grabtype == XI ||
|
||||||
!xi2mask_isset(mouse->deviceGrab.grab->xi2mask, mouse, XI_TouchBegin)) {
|
!xi2mask_isset(grab->xi2mask, mouse, XI_TouchBegin)) {
|
||||||
mode = XIAcceptTouch;
|
mode = XIAcceptTouch;
|
||||||
/* NOTE: we set the state here, but
|
/* NOTE: we set the state here, but
|
||||||
* ProcessTouchOwnershipEvent() will still call
|
* ProcessTouchOwnershipEvent() will still call
|
||||||
|
|
Loading…
Reference in New Issue