summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-10-29 21:55:13 -0400
committerMatthias Clasen <mclasen@redhat.com>2019-10-29 21:55:13 -0400
commitf425c3b7ab329c340a0de689716a775b71c2d0e3 (patch)
tree1a0c254c2f8f2b38da4e45876fe2caabfcc5257d
parent10911bfaf0e568367cb6d8a96df46a5d28c349d6 (diff)
downloadgtk+-f425c3b7ab329c340a0de689716a775b71c2d0e3.tar.gz
wayland: Rely on server key repeat infowayland-key-repeat
Using gsettings for this information does not work in sandboxed scenarios, where settings are per-app. Since the Wayland protocol provides this information nowadays, just drop the old code for reading the gsettings.
-rw-r--r--gdk/wayland/gdkdevice-wayland.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c
index 1b66f37b3a..f1346cd87a 100644
--- a/gdk/wayland/gdkdevice-wayland.c
+++ b/gdk/wayland/gdkdevice-wayland.c
@@ -2055,20 +2055,9 @@ get_key_repeat (GdkWaylandSeat *seat,
}
else
{
- GSettings *keyboard_settings = get_keyboard_settings (seat);
-
- if (keyboard_settings)
- {
- repeat = g_settings_get_boolean (keyboard_settings, "repeat");
- *delay = g_settings_get_uint (keyboard_settings, "delay");
- *interval = g_settings_get_uint (keyboard_settings, "repeat-interval");
- }
- else
- {
- repeat = TRUE;
- *delay = 400;
- *interval = 80;
- }
+ repeat = TRUE;
+ *delay = 400;
+ *interval = 80;
}
return repeat;