[PATCH] Reapply settings when external keyboard connects

Martin Kelly martin at martingkelly.com
Fri May 9 20:05:09 CEST 2014


This patch fixes a longstanding frustration I've had with XFCE, which is that
every time I unplug an external keyboard and then plug it in again, my keyboard
repeat settings get lost. It is 100% reproducible and has a fairly simple
explanation, which is that xfsettingsd does not listen for the device being
added, so X11 sets the keyboard repeat rate instead. Thus my patch is for
xfsettingsd to listen for keyboards being added and apply the keyboard settings
when the event fires.

You can pull this patch from Github at:
https://github.com/aomighty/xfsettingsd-stash/tree/martin-kelly/external-keyboard-notify-X11

Martin Kelly (1):
  Reapply settings when external keyboard connects

 xfsettingsd/keyboards.c | 115 +++++++++++++++++++++++++++++++++++++++++++++---
 xfsettingsd/keyboards.h |  12 +++++
 2 files changed, 122 insertions(+), 5 deletions(-)

-- 
2.0.0.rc2



More information about the Xfce4-dev mailing list