From 814da25dfa191482e1b0bf614eb064c85a3233b0 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Tue, 30 Dec 2008 17:30:50 +0100 Subject: xserver-common: add workaround for xmodmap problems with kdrive 1.4+ --- packages/xserver-common/files/98keymap-fixup | 10 ++++++++++ packages/xserver-common/xserver-common_1.22.bb | 6 ++++-- 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100755 packages/xserver-common/files/98keymap-fixup diff --git a/packages/xserver-common/files/98keymap-fixup b/packages/xserver-common/files/98keymap-fixup new file mode 100755 index 0000000000..fcc84d9cab --- /dev/null +++ b/packages/xserver-common/files/98keymap-fixup @@ -0,0 +1,10 @@ +#!/bin/sh + +# kdrive 1.4 and up have a heisenbug where it may take multiple tries to apply a modmap +iter=0 +while [ $(xmodmap -pke | awk '{if ($2 == 36) { if ($4 == "Return") { print "good" } else {print "bad" }}}') = "bad" ] ; do + xmodmap -