From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15905 invoked by alias); 28 Jun 2013 12:38:18 -0000 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 Received: (qmail 15888 invoked by uid 89); 28 Jun 2013 12:38:16 -0000 X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE autolearn=ham version=3.3.1 Received: from nm8-vm6.bt.bullet.mail.ir2.yahoo.com (HELO nm8-vm6.bt.bullet.mail.ir2.yahoo.com) (212.82.99.223) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 28 Jun 2013 12:38:15 +0000 Received: from [212.82.98.45] by nm8.bt.bullet.mail.ir2.yahoo.com with NNFMP; 28 Jun 2013 12:38:11 -0000 Received: from [217.146.189.75] by tm6.bt.bullet.mail.ir2.yahoo.com with NNFMP; 28 Jun 2013 12:38:11 -0000 Received: from [127.0.0.1] by smtp825.mail.ird.yahoo.com with NNFMP; 28 Jun 2013 12:38:11 -0000 X-Yahoo-SMTP: u.JgLvyswBBMp9ZJJfsX14qmYb3T2ivhMAr6OupnxLpNQEFZ9g-- X-Rocket-Received: from [192.168.1.72] (jon.turney@81.155.22.106 with plain) by smtp825.mail.ird.yahoo.com with SMTP; 28 Jun 2013 05:38:11 -0700 PDT Message-ID: <51CD83C0.2020309@dronecode.org.uk> Date: Fri, 28 Jun 2013 12:38:00 -0000 From: Jon TURNEY Reply-To: cygwin-xfree User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: cygwin-xfree@cygwin.com CC: dus@ornl.gov, info4km@yahoo.com Subject: Re: text fields in app don't allow input when running Cygwin X References: <1364236782.83207.YahooMailNeo@web122606.mail.ne1.yahoo.com> <1366210255.40306.YahooMailNeo@web122602.mail.ne1.yahoo.com> <1371132147781-99552.post@n5.nabble.com> <1371135604875-99554.post@n5.nabble.com> <51BCDD1B.7080101@dronecode.org.uk> <1371480273625-99717.post@n5.nabble.com> <51C1C239.4080205@dronecode.org.uk> In-Reply-To: <51C1C239.4080205@dronecode.org.uk> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SW-Source: 2013-06/txt/msg00057.txt.bz2 On 19/06/2013 15:37, Jon TURNEY wrote: > On 17/06/2013 15:44, Deryl Steinert wrote: >> Do you consider this an issue with Cygwin, Java 7 or with our Java apps? If >> the issue is with Cygwin do you foresee implementing a solution anytime >> soon? Or do you know of a workaround we can use in Java? > > This might just be a bug in the way the multiwindow mode WM handles focus. > > Even if it isn't, a workaround in the multiwindow mode WM seems like a good > idea. There are no guarantees about when. Patches thoughtfully considered. Looking at this again, while the text of ICCCM section 4.1.7 is pretty opaque, the implementation actually seems to be quite straightforward. I've added a patch which makes input focus handling more closely follow ICCCM, and generates the WM_TAKE_FOCUS message when needed. I've tested this very briefly with the TypeInSwing.java test case in sun bug #6798064 and the jdk Notepad demo. I've uploaded a snapshot at [1]. Perhaps you could try that and see if it improves things for you? [1] ftp://cygwin.com/pub/cygwinx/XWin.20130628-git-c1a05551e2bc2d30.exe.bz2 -- Jon TURNEY Volunteer Cygwin/X X Server maintainer -- 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/