mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
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
This commit is contained in:
parent
14e02635ff
commit
b8dcd5f842
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user