[mutter] clutter/main: Ignore synthetic events for accessibility



commit b8dcd5f84266c438b335d81788a8121b928bfaa6
Author: Olivier Fourdan <ofourdan redhat com>
Date:   Fri Aug 23 17:07:05 2019 +0300

    clutter/main: Ignore synthetic events for accessibility
    
    When a dwell click causes the pointer to move to another surface, a
    synthetic event is generated which triggers another dwell click.
    
    Make sure we ignore those to avoid dwell clicking twice in a raw.
    
    Suggested-by: Carlos Garnacho <carlosg gnome org>
    https://gitlab.gnome.org/GNOME/mutter/merge_requests/747

 clutter/clutter/clutter-main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/clutter/clutter/clutter-main.c b/clutter/clutter/clutter-main.c
index 76fbc7789..171441577 100644
--- a/clutter/clutter/clutter-main.c
+++ b/clutter/clutter/clutter-main.c
@@ -1948,7 +1948,8 @@ _clutter_process_event_details (ClutterActor        *stage,
 
       case CLUTTER_MOTION:
 #ifdef CLUTTER_WINDOWING_X11
-        if (!clutter_check_windowing_backend (CLUTTER_WINDOWING_X11))
+        if (!clutter_check_windowing_backend (CLUTTER_WINDOWING_X11) &&
+            !(event->any.flags & CLUTTER_EVENT_FLAG_SYNTHETIC))
           {
             if (_clutter_is_input_pointer_a11y_enabled (device))
               {


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