From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46086) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlBcg-0002x8-9s for qemu-devel@nongnu.org; Thu, 23 Apr 2015 03:32:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YlBcb-0006FI-B0 for qemu-devel@nongnu.org; Thu, 23 Apr 2015 03:32:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45020) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlBcb-0006F6-3V for qemu-devel@nongnu.org; Thu, 23 Apr 2015 03:32:29 -0400 Message-ID: <1429774344.26641.15.camel@nilsson.home.kraxel.org> From: Gerd Hoffmann Date: Thu, 23 Apr 2015 09:32:24 +0200 In-Reply-To: <93583221.343538.1429719643960.JavaMail.open-xchange@oxbaltgw00.schlund.de> References: <93583221.343538.1429719643960.JavaMail.open-xchange@oxbaltgw00.schlund.de> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Trouble with numlock and SDL List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Erik Rull Cc: "qemu-devel@nongnu.org" On Mi, 2015-04-22 at 18:20 +0200, Erik Rull wrote: > Hi all, > > I'm struggling a bit with the numlock state when using SDL. > On SDL 1.2.13 I have the problem that the numlock state is inverted for QEMU - > but it is switchable. Move focus out of sdl window -- hit numlock once -- move focus back in. Does that synchronize things? Is this something new? IIRC there have been no (intentional) changes in that area recently. > On SDL 1.2.14 and 1.2.15 I can't enable the number input in any state of the > numlock key. No idea on that one. Sounds like SDL not sending numlock key events at all. > With VNC everything is fine. Yep. vnc has some special logic to sync guest/host numlock state (also for capslock). Maybe we should factor that out into reusable helper functions. cheers, Gerd