[mutter/wip/carlosg/crossings: 8/9] wayland: Only repick pointer on crossing events
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/crossings: 8/9] wayland: Only repick pointer on crossing events
- Date: Wed, 23 Dec 2020 11:37:53 +0000 (UTC)
commit c46302a5d437f07c77a1ff8c8620c8fd6a5bd9d3
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Dec 23 12:33:00 2020 +0100
wayland: Only repick pointer on crossing events
These are the only situations where it makes sense to determine a new
focus surface.
src/wayland/meta-wayland-pointer.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/wayland/meta-wayland-pointer.c b/src/wayland/meta-wayland-pointer.c
index 260d85a24e..1da71179c6 100644
--- a/src/wayland/meta-wayland-pointer.c
+++ b/src/wayland/meta-wayland-pointer.c
@@ -613,7 +613,9 @@ void
meta_wayland_pointer_update (MetaWaylandPointer *pointer,
const ClutterEvent *event)
{
- repick_for_event (pointer, event);
+ if (event->type == CLUTTER_ENTER ||
+ event->type == CLUTTER_LEAVE)
+ repick_for_event (pointer, event);
if (event->type == CLUTTER_MOTION ||
event->type == CLUTTER_BUTTON_PRESS ||
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]