[mutter/gnome-3-22] meta-input-settings: Avoid setting key repeat delay or interval to 0
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gnome-3-22] meta-input-settings: Avoid setting key repeat delay or interval to 0
- Date: Thu, 16 Feb 2017 15:52:47 +0000 (UTC)
commit b465546a52577722ac84815b35ad77e74ffa235c
Author: Rui Matos <tiagomatos gmail com>
Date: Mon Jan 9 19:55:38 2017 +0100
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
src/backends/meta-input-settings.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/backends/meta-input-settings.c b/src/backends/meta-input-settings.c
index e1ec42d..c0e5c93 100644
--- a/src/backends/meta-input-settings.c
+++ b/src/backends/meta-input-settings.c
@@ -685,6 +685,9 @@ update_keyboard_repeat (MetaInputSettings *input_settings)
delay = g_settings_get_uint (priv->keyboard_settings, "delay");
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->set_keyboard_repeat (input_settings,
repeat, delay, interval);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]