From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dw5EH-0006qx-ER for qemu-devel@nongnu.org; Fri, 22 Jul 2005 17:38:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dw5EF-0006px-6I for qemu-devel@nongnu.org; Fri, 22 Jul 2005 17:38:48 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dw5EE-0006pS-UC for qemu-devel@nongnu.org; Fri, 22 Jul 2005 17:38:46 -0400 Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1Dw5LY-0000Pa-Or for qemu-devel@nongnu.org; Fri, 22 Jul 2005 17:46:21 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Dw57y-0006x3-SC for qemu-devel@nongnu.org; Fri, 22 Jul 2005 23:32:18 +0200 Received: from 193.5.60.109 ([193.5.60.109]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 Jul 2005 23:32:18 +0200 Received: from cwalther by 193.5.60.109 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 Jul 2005 23:32:18 +0200 From: Christian Walther Date: Fri, 22 Jul 2005 23:24:21 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------060909070207020908020902" Sender: news Subject: [Qemu-devel] [PATCH] Fix virtual console switching with SDL on Mac OS X Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This is a multi-part message in MIME format. --------------060909070207020908020902 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 --------------060909070207020908020902 Content-Type: text/plain; x-mac-type="0"; x-mac-creator="0"; name="qemu-sdl-vcswitch.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="qemu-sdl-vcswitch.patch" 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); --------------060909070207020908020902--