[mutter] clutter/evdev: Do not reset timers on togglekeys



commit 36155f72d0dd8e268439d3c382e12bf2adc78c3b
Author: Olivier Fourdan <ofourdan redhat com>
Date:   Mon Jun 17 09:33:30 2019 +0200

    clutter/evdev: Do not reset timers on togglekeys
    
    The “togglekeys” setting is to emit a sounds whenever the state of one
    of the modifiers keys (CAPS lock, NUM Lock, SCROLL lock) is changed, it
    has nothing to do with the rest of the accessibility settings.
    
    Therefore, there is no need to reset the various timers used by
    accessibility whenever the “togglekeys” setting is changed.
    
    https://gitlab.gnome.org/GNOME/mutter/merge_requests/614

 clutter/clutter/evdev/clutter-input-device-evdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/clutter/clutter/evdev/clutter-input-device-evdev.c 
b/clutter/clutter/evdev/clutter-input-device-evdev.c
index ca38e4d7d..105d769fa 100644
--- a/clutter/clutter/evdev/clutter-input-device-evdev.c
+++ b/clutter/clutter/evdev/clutter-input-device-evdev.c
@@ -1225,7 +1225,7 @@ clutter_input_device_evdev_apply_kbd_a11y_settings (ClutterInputDeviceEvdev *dev
       update_internal_xkb_state (device, 0, 0);
     }
 
-  if (changed_flags & (CLUTTER_A11Y_KEYBOARD_ENABLED | CLUTTER_A11Y_TOGGLE_KEYS_ENABLED))
+  if (changed_flags & CLUTTER_A11Y_KEYBOARD_ENABLED)
     {
       device->toggle_slowkeys_timer = 0;
       device->shift_count = 0;


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