mirror of
https://github.com/brl/mutter.git
synced 2025-02-17 21:54:10 +00:00
core: Handle TouchUpdate with TouchPendingEnd as TouchEnd
The touch sequence is possibly unhandled, but we need a call to meta_window_end_touch() so such touch sequences are notified to the server, this would trigger the real TouchEnd event as the touch is rejected, but should be a no-op the second time
This commit is contained in:
parent
3b578c2983
commit
c8f0a136cc
@ -93,6 +93,17 @@ meta_input_event_get_type (MetaDisplay *display,
|
|||||||
type = ButtonRelease;
|
type = ButtonRelease;
|
||||||
break;
|
break;
|
||||||
case XI_TouchUpdate:
|
case XI_TouchUpdate:
|
||||||
|
if (((XIDeviceEvent *) xev)->flags & XITouchPendingEnd)
|
||||||
|
{
|
||||||
|
/* Consider these events like TouchEnd, as we
|
||||||
|
* could still need to call XIAllowTouchEvents()
|
||||||
|
* for this touch sequence so we get the real
|
||||||
|
* TouchEnd event, handling this event type the
|
||||||
|
* second time it arrives should be a NO-OP.
|
||||||
|
*/
|
||||||
|
type = ButtonRelease;
|
||||||
|
}
|
||||||
|
else
|
||||||
type = MotionNotify;
|
type = MotionNotify;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user