diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2020-12-22 17:24:31 +0100 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2020-12-22 18:27:37 +0100 |
commit | aa68042d67389b87f3a5d12106d5e8e3bf2847e3 (patch) | |
tree | a72aa56a26904cf8b42e79ec64e489efe71651a1 | |
parent | 62e8481c49c519dd5613ff65d79eca99bb508d7c (diff) | |
download | mutter-aa68042d67389b87f3a5d12106d5e8e3bf2847e3.tar.gz |
wayland: Don't use CLUTTER_LEAVE source actor for repick
This is the actor receiving the event, therefore precisely not the
actor the pointer is on. We should avoid this event's source here.
Fixes: https://gitlab.gnome.org/GNOME/mutter/-/issues/1584
-rw-r--r-- | src/wayland/meta-wayland-pointer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wayland/meta-wayland-pointer.c b/src/wayland/meta-wayland-pointer.c index 0b563efcc..545b04d32 100644 --- a/src/wayland/meta-wayland-pointer.c +++ b/src/wayland/meta-wayland-pointer.c @@ -586,7 +586,7 @@ repick_for_event (MetaWaylandPointer *pointer, ClutterActor *actor; MetaWaylandSurface *surface; - if (for_event) + if (for_event && clutter_event_type (for_event) != CLUTTER_LEAVE) actor = clutter_event_get_source (for_event); else actor = clutter_stage_get_device_actor (stage, pointer->device, NULL); |