Skip to contentSkip to conversation

[7098] Recognise evdev(xx)_aliases(yy) and xfree86(xx)_aliases(yy) as keymap names.

Qemu-devel Anthony Liguori 1 participant 1 message Apr 13, 2009

lore
Share & tools
lore
#0 lore raw

Revision: 7098

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7098
Author:   aliguori
Date:     2009-04-13 13:29:40 +0000 (Mon, 13 Apr 2009)

Log Message:
-----------
Recognise evdev(xx)_aliases(yy) and xfree86(xx)_aliases(yy) as keymap names.

Newer Xorg use these with non-default kemaps (such as the ThinkPad keymap).

aliguori: this is from r7097 in trunk by balrog

Modified Paths:
--------------

    branches/stable_0_10/sdl.c

Modified: branches/stable_0_10/sdl.c
===================================================================

stable_0_10/sdl.c +2 -2
@@ -161,9 +161,9 @@
     keycodes = XGetAtomName(info.info.x11.display, desc->names->keycodes);
     if (keycodes == NULL)
         fprintf(stderr, "could not lookup keycode name\n");
-    else if (strstart(keycodes, "evdev_", NULL))
+    else if (strstart(keycodes, "evdev", NULL))
         has_evdev = 1;
-    else if (!strstart(keycodes, "xfree86_", NULL))
+    else if (!strstart(keycodes, "xfree86", NULL))
         fprintf(stderr,
                 "unknown keycodes `%s', please report to [email protected]\n",
                 keycodes);