From 36155f72d0dd8e268439d3c382e12bf2adc78c3b Mon Sep 17 00:00:00 2001 From: Olivier Fourdan Date: Mon, 17 Jun 2019 09:33:30 +0200 Subject: [PATCH] clutter/evdev: Do not reset timers on togglekeys MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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;