From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17723 invoked by alias); 15 Aug 2011 17:14:13 -0000 Received: (qmail 17713 invoked by uid 22791); 15 Aug 2011 17:14:12 -0000 X-SWARE-Spam-Status: No, hits=-0.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from fmmailgate03.web.de (HELO fmmailgate03.web.de) (217.72.192.234) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 15 Aug 2011 17:13:58 +0000 Received: from smtp02.web.de ( [172.20.0.184]) by fmmailgate03.web.de (Postfix) with ESMTP id 36A301978C642 for ; Mon, 15 Aug 2011 19:13:57 +0200 (CEST) Received: from [84.150.151.48] (helo=lp21723) by smtp02.web.de with esmtp (WEB.DE 4.110 #2) id 1Qt0jd-0003OE-00 for cygwin-xfree@cygwin.com; Mon, 15 Aug 2011 19:13:57 +0200 From: "Paul Maier" To: References: <4E4916B6.9030602@gmx.de> In-Reply-To: <4E4916B6.9030602@gmx.de> Subject: AW: AltGr key mostly fires an additional CONTROL key Date: Mon, 15 Aug 2011 17:14:00 -0000 Message-ID: <000001cc5b6e$a2420e70$e6c62b50$@de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Sender: svn-user@web.de 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: 2011-08/txt/msg00036.txt.bz2 > Hi, > > I also had problems with the AltGr key. These could reliably > be reproduced by holding the AltGr for some seconds (causing > Windows generating auto repeat events). > > Unfortunately the test version at > > ftp://cygwin.com/pub/cygwinx/XWin.20110801-git-2d9f9305cb559907.exe.bz2 > > doesn't fix this problem for me. > > I discovered that the mechanism in winkeybd.c function > winIsFakeCtrl_L had a problem if PeekMessage cannot obtain > the next Alt_R message because it is not there. > > I prepared a patch that remembers the last Ctrl_L event and > reacts on a later following Alt_R. It was also necessary to > alter the order in winWindowProc in winwndproc.c: the invocation > of winIsFakeCtrl_L had to be done before discarding auto-repeated > key presses. > > The attached patch is against the sources of xserver-cygwin-1.10.3-1. > > Best regards, > Oliver Hi Oliver, the ftp://.....exe.bz2 that you mention wasn't intended to contain any fix; it only produces additional debug statements. This is the one, that contains Jon's fix (works fine for me): ftp://cygwin.com/pub/cygwinx/XWin.20110803-git-a493c0465e56ce0b.exe.bz2 Paul. -- 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/