mirror of
https://github.com/brl/mutter.git
synced 2025-06-14 01:09:30 +00: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:
@ -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 ||
|
||||
|
Reference in New Issue
Block a user