summaryrefslogtreecommitdiffstats
path: root/tests/migrate.py
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2011-08-16 11:26:54 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2011-08-17 10:42:19 +0200
commit3d31e36bf2db0c42b21e8e27b5b6f3aea9ea4181 (patch)
tree475459984bc67102d13ca97e1a2337c1b8550453 /tests/migrate.py
parentf2b4c3d21aed0018dc7014542f76b64e6aa57ce6 (diff)
downloadspice-3d31e36bf2db0c42b21e8e27b5b6f3aea9ea4181.tar.gz
spice-3d31e36bf2db0c42b21e8e27b5b6f3aea9ea4181.tar.xz
spice-3d31e36bf2db0c42b21e8e27b5b6f3aea9ea4181.zip
use Xkb to get keyboard modifier mask
To be able to enable/disable keyboard leds on X11, we need to query the X server for which mask correspond to which led (NumLock, CapsLock). So far this was done using XKeysymToKeycode and iterating over X modifier mapping. Xkb provides XkbKeysymToModifiers for this purpose, and since we're using Xkb anyway, it makes more sense to use it. At some point, on my Fedora 15 box, XKeysymToKeycode was returning NoSymbol for CapsLock and NumLock leading to spicec not being able to change the keyboard leds when qemu tells it to. However, I couldn't reproduce this when I tried again :-/
Diffstat (limited to 'tests/migrate.py')
0 files changed, 0 insertions, 0 deletions