Commit bb0574fe2bb1781d0afc1c1ad26df68a4d30d5ea
1 parent
867abc7e
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). git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7097 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
2 additions
and
2 deletions
sdl.c
@@ -251,9 +251,9 @@ static int check_for_evdev(void) | @@ -251,9 +251,9 @@ static int check_for_evdev(void) | ||
251 | keycodes = XGetAtomName(info.info.x11.display, desc->names->keycodes); | 251 | keycodes = XGetAtomName(info.info.x11.display, desc->names->keycodes); |
252 | if (keycodes == NULL) | 252 | if (keycodes == NULL) |
253 | fprintf(stderr, "could not lookup keycode name\n"); | 253 | fprintf(stderr, "could not lookup keycode name\n"); |
254 | - else if (strstart(keycodes, "evdev_", NULL)) | 254 | + else if (strstart(keycodes, "evdev", NULL)) |
255 | has_evdev = 1; | 255 | has_evdev = 1; |
256 | - else if (!strstart(keycodes, "xfree86_", NULL)) | 256 | + else if (!strstart(keycodes, "xfree86", NULL)) |
257 | fprintf(stderr, | 257 | fprintf(stderr, |
258 | "unknown keycodes `%s', please report to qemu-devel@nongnu.org\n", | 258 | "unknown keycodes `%s', please report to qemu-devel@nongnu.org\n", |
259 | keycodes); | 259 | keycodes); |