This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
Re: text fields in app don't allow input when running Cygwin X
- From: Jon TURNEY <jon dot turney at dronecode dot org dot uk>
- To: cygwin-xfree at cygwin dot com
- Cc: dus at ornl dot gov, info4km at yahoo dot com
- Date: Fri, 28 Jun 2013 13:38:24 +0100
- Subject: Re: text fields in app don't allow input when running Cygwin X
- References: <1364236782 dot 83207 dot YahooMailNeo at web122606 dot mail dot ne1 dot yahoo dot com> <1366210255 dot 40306 dot YahooMailNeo at web122602 dot mail dot ne1 dot yahoo dot com> <1371132147781-99552 dot post at n5 dot nabble dot com> <1371135604875-99554 dot post at n5 dot nabble dot com> <51BCDD1B dot 7080101 at dronecode dot org dot uk> <1371480273625-99717 dot post at n5 dot nabble dot com> <51C1C239 dot 4080205 at dronecode dot org dot uk>
- Reply-to: cygwin-xfree at cygwin dot com
- Reply-to: cygwin-xfree <cygwin-xfree at cygwin dot com>
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/