dix/events: reuse grab pointer value

This commit is contained in:
Marco Trevisan (Treviño) 2018-10-27 03:54:09 +02:00 committed by Peter Hutterer
parent 35e5a76cc1
commit 2118e4471b

View File

@ -1573,7 +1573,7 @@ DeactivatePointerGrab(DeviceIntPtr mouse)
emulate a ButtonRelease here. So pretend the listener
already has the end event */
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;
/* NOTE: we set the state here, but
* ProcessTouchOwnershipEvent() will still call