Commit 966725fc authored by Rui Matos's avatar Rui Matos

meta-input-settings: Avoid setting key repeat delay or interval to 0

Since doing so causes either errors or misbehavior.

https://bugzilla.gnome.org/show_bug.cgi?id=776919
parent 90923903
...@@ -678,6 +678,9 @@ update_keyboard_repeat (MetaInputSettings *input_settings) ...@@ -678,6 +678,9 @@ update_keyboard_repeat (MetaInputSettings *input_settings)
delay = g_settings_get_uint (priv->keyboard_settings, "delay"); delay = g_settings_get_uint (priv->keyboard_settings, "delay");
interval = g_settings_get_uint (priv->keyboard_settings, "repeat-interval"); interval = g_settings_get_uint (priv->keyboard_settings, "repeat-interval");
delay = MAX (1, delay);
interval = MAX (1, interval);
input_settings_class = META_INPUT_SETTINGS_GET_CLASS (input_settings); input_settings_class = META_INPUT_SETTINGS_GET_CLASS (input_settings);
input_settings_class->set_keyboard_repeat (input_settings, input_settings_class->set_keyboard_repeat (input_settings,
repeat, delay, interval); repeat, delay, interval);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment