[gtk/wl-key-repeat] wayland: Rely on server key repeat info
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gtk/wl-key-repeat] wayland: Rely on server key repeat info
- Date: Wed, 30 Oct 2019 01:59:36 +0000 (UTC)
commit 4d9cc483c988b49056e2eadcb6bb0bf5af2f0799
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Oct 29 21:55:13 2019 -0400
    wayland: Rely on server key repeat info
    
    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.
 gdk/wayland/gdkdevice-wayland.c | 17 +++--------------
 1 file 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;
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]