qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Fix virtual console switching with SDL on Mac OS X
@ 2005-07-22 21:24 Christian Walther
  2005-07-22 22:40 ` Jim C. Brown
  0 siblings, 1 reply; 4+ messages in thread
From: Christian Walther @ 2005-07-22 21:24 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 327 bytes --]

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

[-- Attachment #2: qemu-sdl-vcswitch.patch --]
[-- Type: text/plain, Size: 857 bytes --]

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);

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-07-23 19:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-22 21:24 [Qemu-devel] [PATCH] Fix virtual console switching with SDL on Mac OS X Christian Walther
2005-07-22 22:40 ` Jim C. Brown
2005-07-23 12:42   ` [Qemu-devel] " Christian Walther
2005-07-23 18:46     ` Jim C. Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).