wayland: Rely on server key repeat info
authorMatthias Clasen <mclasen@redhat.com>
Wed, 30 Oct 2019 01:55:13 +0000 (21:55 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 30 Oct 2019 01:58:45 +0000 (21:58 -0400)
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

index 1b66f37b3a56637cef2712c19811a7a352819fa2..f1346cd87ab92614d23acb9dbe9fbbac929e5c87 100644 (file)
@@ -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;