From: Christian Walther <cwalther@gmx.ch>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] Fix virtual console switching with SDL on Mac OS X
Date: Fri, 22 Jul 2005 23:24:21 +0200 [thread overview]
Message-ID: <dbro67$36j$1@sea.gmane.org> (raw)
[-- 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);
next reply other threads:[~2005-07-22 21:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-22 21:24 Christian Walther [this message]
2005-07-22 22:40 ` [Qemu-devel] [PATCH] Fix virtual console switching with SDL on Mac OS X Jim C. Brown
2005-07-23 12:42 ` [Qemu-devel] " Christian Walther
2005-07-23 18:46 ` Jim C. Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='dbro67$36j$1@sea.gmane.org' \
--to=cwalther@gmx.ch \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).