mirror of
https://github.com/brl/mutter.git
synced 2024-11-28 11:00:54 -05:00
clutter: Also pick on TOUCH_BEGIN events
With 734a185915
an optimization was
introduced to only pick on events which can actually cause the pointer
to move. In case of touch events, the first event (TOUCH_BEGIN) will
already move the touchpoint though, and we'll send our crossing
CLUTTER_ENTER event to the actor this TOUCH_BEGIN happened on.
So fix this embarrassing bug that caused touch input to break by also
picking to find an event-actor on TOUCH_BEGIN events.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1733>
This commit is contained in:
parent
70cfccd9e2
commit
1922896f07
@ -1806,7 +1806,8 @@ _clutter_process_event_details (ClutterActor *stage,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (event->type == CLUTTER_TOUCH_UPDATE)
|
if (event->type == CLUTTER_TOUCH_BEGIN ||
|
||||||
|
event->type == CLUTTER_TOUCH_UPDATE)
|
||||||
{
|
{
|
||||||
event->any.source =
|
event->any.source =
|
||||||
update_device_for_event (CLUTTER_STAGE (stage), event, TRUE);
|
update_device_for_event (CLUTTER_STAGE (stage), event, TRUE);
|
||||||
|
Loading…
Reference in New Issue
Block a user