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
This commit is contained in:
Olivier Fourdan 2019-06-17 09:33:30 +02:00
parent c63d0173b5
commit 36155f72d0

View File

@ -1225,7 +1225,7 @@ clutter_input_device_evdev_apply_kbd_a11y_settings (ClutterInputDeviceEvdev *dev
update_internal_xkb_state (device, 0, 0); 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->toggle_slowkeys_timer = 0;
device->shift_count = 0; device->shift_count = 0;