[mutter/wip/carlosg/picking-fixes: 3/4] wayland: Do not account touch crossing events for pointer
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/picking-fixes: 3/4] wayland: Do not account touch crossing events for pointer
- Date: Mon, 28 Dec 2020 21:22:42 +0000 (UTC)
commit 5adfd4170f5f8814fe6722d96809d4730ac301dd
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Dec 28 18:38:51 2020 +0100
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.
src/wayland/meta-wayland-pointer.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/wayland/meta-wayland-pointer.c b/src/wayland/meta-wayland-pointer.c
index 1d6bb759c8..28203c28c4 100644
--- a/src/wayland/meta-wayland-pointer.c
+++ b/src/wayland/meta-wayland-pointer.c
@@ -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 ||
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]