[Pkg-xfce-devel] Bug#527238: xfce4-settings: xfce4-keyboard-settings does not change repeat delay

Sven Marnach sven at pantoffel-wg.de
Wed May 6 10:05:50 UTC 2009

Package: xfce4-settings
Version: 4.6.1-1
Severity: normal
Tags: patch

Since I updated to version 4.6.1, my keyboard repeat delay is very
slow.  I cannot set the delay via the xfce4-keyboard-settings dialog.
It is possible to adjust the keyboard repeat rate via this dialog, but
the slider for the delay has no effect at all. It is possible to set
the delay via "xset r rate" on the command line, but if I add such a
line to my .xsessionrc, the setting is later overwritten by the XFCE
setting.  So it seems XFCE *can* set the keyboard delay, it just does
not use the value I set in the dialog.

This is the contents of my ~/.config/xfce4/xfconf/xfce-perchannel-xml/keyboards.xml:

<?xml version="1.0" encoding="UTF-8"?>

<channel name="keyboards" version="1.0">
  <property name="Default" type="empty">
    <property name="KeyRepeat" type="bool" value="true">
      <property name="Delay" type="int" value="840"/>
      <property name="Rate" type="int" value="50"/>
  <property name="DefaultKeyRepeat" type="empty">
    <property name="Delay" type="int" value="10"/>

Oh, well, looking at this file the error seems to be pretty obvious --
did not do this before :)

So here is a patch:

--- dialogs/keyboard-settings/xfce-keyboard-settings.c~ 2009-03-02 18:48:00.000000000 +0100
+++ dialogs/keyboard-settings/xfce-keyboard-settings.c  2009-05-06 11:56:33.000000000 +0200
@@ -322,7 +322,7 @@
   xfconf_g_property_bind (settings->priv->keyboards_channel, "/Default/KeyRepeat/Rate", G_TYPE_INT, G_OBJECT (xkb_key_repeat_rate_scale), "value");
   xkb_key_repeat_delay_scale = gtk_range_get_adjustment (GTK_RANGE (glade_xml_get_widget (settings->priv->glade_xml, "xkb_key_repeat_delay_scale")));
-  xfconf_g_property_bind (settings->priv->keyboards_channel, "/DefaultKeyRepeat/Delay", G_TYPE_INT, G_OBJECT (xkb_key_repeat_delay_scale), "value");
+  xfconf_g_property_bind (settings->priv->keyboards_channel, "/Default/KeyRepeat/Delay", G_TYPE_INT, G_OBJECT (xkb_key_repeat_delay_scale), "value");
   /* XSETTINGS */
   net_cursor_blink_check = glade_xml_get_widget (settings->priv->glade_xml, "net_cursor_blink_check");


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.29-1-686-bigmem (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=de_DE at euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

Versions of packages xfce4-settings depends on:
ii  libc6                        2.9-4       GNU C Library: Shared libraries
ii  libcairo2                    1.8.6-2+b1  The Cairo 2D vector graphics libra
ii  libdbus-glib-1-2             0.80-3      simple interprocess messaging syst
ii  libexo-0.3-0                 0.3.101-1   Library with extensions for Xfce
ii  libglade2-0                  1:2.6.4-1   library to load .glade files at ru
ii  libglib2.0-0                 2.20.0-2    The GLib library of C routines
ii  libgtk2.0-0                  2.16.1-2    The GTK+ graphical user interface 
ii  libnotify1 [libnotify1-gtk2. 0.4.5-1     sends desktop notifications to a n
ii  libpango1.0-0                1.24.0-3+b1 Layout and rendering of internatio
ii  libwnck22                    2.24.2-2    Window Navigator Construction Kit 
ii  libx11-6                     2:1.2.1-1   X11 client-side library
ii  libxcursor1                  1:1.1.9-1   X cursor management library
ii  libxfce4util4                4.6.1-1     Utility functions library for Xfce
ii  libxfcegui4-4                4.6.1-1     Basic GUI C functions for Xfce4
ii  libxfconf-0-2                4.6.1-1     Client library for Xfce4 configure
ii  libxi6                       2:1.2.1-2   X11 Input extension library
ii  libxklavier12                3.9-1       X Keyboard Extension high-level AP
ii  libxrandr2                   2:1.3.0-2   X11 RandR extension library
ii  xfconf                       4.6.1-1     utilities for managing settings in

Versions of packages xfce4-settings recommends:
ii  aumix                         2.8-22     Simple text-based mixer control pr
ii  x11-utils                     7.4+1      X11 utilities

xfce4-settings suggests no packages.

-- no debconf information

More information about the Pkg-xfce-devel mailing list