Commit 6215eae1 authored by Marco Trevisan's avatar Marco Trevisan
Browse files

dix/events: reuse grab pointer value

parent c72c4d43
Pipeline #6974 passed with stage
in 1 minute and 51 seconds
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment