mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
wayland: Do not account touch crossing events for pointer
These events may be emitted for touchpoints (in which case they contain an event sequence). Ignore those as they are not relevant for pointer picking, and shouldn't influence its focus. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1657>
This commit is contained in:
parent
4fb968af76
commit
d39d4d124e
@ -611,8 +611,9 @@ void
|
||||
meta_wayland_pointer_update (MetaWaylandPointer *pointer,
|
||||
const ClutterEvent *event)
|
||||
{
|
||||
if (event->type == CLUTTER_ENTER ||
|
||||
event->type == CLUTTER_LEAVE)
|
||||
if ((event->type == CLUTTER_ENTER ||
|
||||
event->type == CLUTTER_LEAVE) &&
|
||||
!clutter_event_get_event_sequence (event))
|
||||
repick_for_event (pointer, event);
|
||||
|
||||
if (event->type == CLUTTER_MOTION ||
|
||||
|
Loading…
Reference in New Issue
Block a user