[mutter/wip/carlosg/crossings: 5/9] wayland: Avoid repick_for_event() call




commit abe0024f3c9cde008648b63aa3e0fd59f926625a
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Dec 22 17:41:09 2020 +0100

    wayland: Avoid repick_for_event() call
    
    We can also tell the stage to emit crossing events, which will be
    handled in place (i.e. not queued), and yield the same result.

 src/wayland/meta-wayland-pointer.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/src/wayland/meta-wayland-pointer.c b/src/wayland/meta-wayland-pointer.c
index 9828090be7..e1683f5751 100644
--- a/src/wayland/meta-wayland-pointer.c
+++ b/src/wayland/meta-wayland-pointer.c
@@ -1029,9 +1029,7 @@ meta_wayland_pointer_repick (MetaWaylandPointer *pointer)
                                point,
                                CLUTTER_CURRENT_TIME,
                                new_actor,
-                               FALSE);
-
-  repick_for_event (pointer, NULL);
+                               TRUE);
 }
 
 void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]