From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31487 invoked by alias); 10 Jan 2012 10:15:07 -0000 Received: (qmail 31472 invoked by uid 22791); 10 Jan 2012 10:15:06 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mailout-de.gmx.net (HELO mailout-de.gmx.net) (213.165.64.23) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Tue, 10 Jan 2012 10:14:54 +0000 Received: (qmail invoked by alias); 10 Jan 2012 10:14:53 -0000 Received: from bastian.ppi.de (EHLO [192.168.103.48]) [194.180.18.1] by mail.gmx.net (mp033) with SMTP; 10 Jan 2012 11:14:53 +0100 Message-ID: <4F0C0F9B.5010704@gmx.de> Date: Tue, 10 Jan 2012 10:15:00 -0000 From: Oliver Schmidt User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: cygwin-xfree@cygwin.com Subject: Re: considering modifier keys after gaining focus References: <4E4A8D56.6010704@gmx.de> <4F09B4D4.4070905@gmx.de> <4F0AF463.5050707@dronecode.org.uk> <4F0B2DC8.9030706@gmx.de> <4F0C0934.7010708@gmx.de> In-Reply-To: <4F0C0934.7010708@gmx.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Reply-To: cygwin-xfree@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com X-SW-Source: 2012-01/txt/msg00011.txt.bz2 It's me again ;-) On 1/10/2012 10:47 AM, Oliver Schmidt wrote: > Ok, I tried using "GetKeyState" instead of "GetAsyncKeyState" and it > also works. So it seems to be a good idea to switch to "GetKeyState". My answer was too fast: unfortunately I got problems using "GetKeyState" instead of "GetAsyncKeyState": I had hanging Alt-Keys if switching into a x11 window using alt+tab when the mouse was already in the window before the alt+tab keypress. So I switched back to using "GetAsyncKeyState" and everything now works again as it should. So after my experience we should use "GetAsyncKeyState": this works for me without any problems since August 2011 and I'm using this 8 hours every day, doing a lot of keyboard stuff and opening, raising and closing X11 windows frequently using the keyboard. Best regards, Oliver -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/