qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] Fix virtual console switching with SDL on Mac OS X


From: Christian Walther
Subject: [Qemu-devel] [PATCH] Fix virtual console switching with SDL on Mac OS X
Date: Fri, 22 Jul 2005 23:24:21 +0200
User-agent: Mozilla Thunderbird 1.0 (Macintosh/20041206)

Has switching virtual consoles actually been broken with SDL on non-X11, non-win32 platforms (i.e. Mac OS X) for 7 months without anyone noticing ?? Anyway, here's a patch that fixes it. Just a small change that was forgotten in the keymaps support (sdl.c rev. 1.20). Applies to current CVS as well as 0.7.0.

 -Christian
Index: sdl.c
===================================================================
RCS file: /cvsroot/qemu/qemu/sdl.c,v
retrieving revision 1.21
diff -u -r1.21 sdl.c
--- sdl.c       17 Jan 2005 22:32:23 -0000      1.21
+++ sdl.c       22 Jul 2005 21:14:11 -0000
@@ -334,7 +334,11 @@
                 gui_key_modifier_pressed = mod_state;
                 if (gui_key_modifier_pressed) {
                     int keycode;
-                    keycode = sdl_keyevent_to_keycode(&ev->key);
+                    if (kbd_layout) {
+                        keycode = sdl_keyevent_to_keycode_generic(&ev->key);
+                    } else {
+                        keycode = sdl_keyevent_to_keycode(&ev->key);
+                    }
                     switch(keycode) {
                     case 0x21: /* 'f' key on US keyboard */
                         toggle_full_screen(ds);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]