summaryrefslogtreecommitdiff
path: root/clutter
diff options
context:
space:
mode:
authorOlivier Fourdan <ofourdan@redhat.com>2019-08-23 17:07:05 +0300
committerOlivier Fourdan <ofourdan@redhat.com>2019-08-24 12:43:20 +0300
commitb8dcd5f84266c438b335d81788a8121b928bfaa6 (patch)
treebed342b586857974534c75e7c12f64075ccdd024 /clutter
parent14e02635ff1136546ca5b482063200d4a69e5862 (diff)
downloadmutter-b8dcd5f84266c438b335d81788a8121b928bfaa6.tar.gz
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
Diffstat (limited to 'clutter')
-rw-r--r--clutter/clutter/clutter-main.c3
1 files changed, 2 insertions, 1 deletions
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))
{