From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NfxEk-0004Xb-MR for qemu-devel@nongnu.org; Fri, 12 Feb 2010 10:15:18 -0500 Received: from [199.232.76.173] (port=54965 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NfxEk-0004XL-6b for qemu-devel@nongnu.org; Fri, 12 Feb 2010 10:15:18 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NfxEi-00060X-RW for qemu-devel@nongnu.org; Fri, 12 Feb 2010 10:15:17 -0500 Received: from qw-out-1920.google.com ([74.125.92.144]:3988) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NfxEi-00060T-Jw for qemu-devel@nongnu.org; Fri, 12 Feb 2010 10:15:16 -0500 Received: by qw-out-1920.google.com with SMTP id 5so169867qwc.4 for ; Fri, 12 Feb 2010 07:15:16 -0800 (PST) Message-ID: <4B75707F.7040105@codemonkey.ws> Date: Fri, 12 Feb 2010 09:15:11 -0600 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] Re: Qemu does not pass pressed caps lock to client References: <4B752548.1040108@redhat.com> <4B754C04.4080907@redhat.com> In-Reply-To: <4B754C04.4080907@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: kwolf@redhat.com, shaharh@gmail.com, qemu-devel@nongnu.org, Dustin Kirkland On 02/12/2010 06:39 AM, Paolo Bonzini wrote: > /* There are two versions around of a Debian patch that changes the > way Caps Lock and Num Lock are handled. The first version > by default sends only one of the KeyDown/KeyUp events, unless > SDL_DISABLE_LOCK_KEYS is present in the environment. The second > version instead by default sends both events, unless > SDL_DISABLE_LOCK_KEYS is present and not empty. This version > is the most commonly found (and a totally braindead idea). > > Upstream instead supports SDL_NO_LOCK_KEYS which, if set to 1, > will generate all four events---which is what we want. Luckily, > there is a combination of environment variable that will satisfy > all variant. */ > > putenv ("SDL_DISABLE_LOCK_KEYS", ""); > putenv ("SDL_NO_LOCK_KEYS", "1"); > > Yes, I love Debian. So basically, Debian carries a hacked version of SDL that changes the key press behaviour? That's a Debian/Ubuntu bug. Shame on them for changing the behaviour of a library API like that. Regards, Anthony Liguori > Paolo > >