public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
From: Jon TURNEY <jon.turney@dronecode.org.uk>
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
Date: Fri, 28 Jun 2013 12:38:00 -0000	[thread overview]
Message-ID: <51CD83C0.2020309@dronecode.org.uk> (raw)
In-Reply-To: <51C1C239.4080205@dronecode.org.uk>

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/


  parent reply	other threads:[~2013-06-28 12:38 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1364236089.7676.YahooMailNeo@web122603.mail.ne1.yahoo.com>
2013-03-25 18:39 ` KM
2013-03-27 16:09   ` Jon TURNEY
2013-03-28  6:58     ` Mark Hansen
     [not found]   ` <1366210255.40306.YahooMailNeo@web122602.mail.ne1.yahoo.com>
2013-06-13 14:02     ` Deryl Steinert
2013-06-13 15:00       ` Deryl Steinert
2013-06-15 21:31         ` Jon TURNEY
2013-06-17 14:44           ` Deryl Steinert
2013-06-19 14:37             ` Jon TURNEY
2013-06-19 16:03               ` Deryl Steinert
2013-06-28 12:38               ` Jon TURNEY [this message]
2013-07-08 21:21                 ` Deryl Steinert
2013-07-08 22:08                   ` Jon TURNEY

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51CD83C0.2020309@dronecode.org.uk \
    --to=jon.turney@dronecode.org.uk \
    --cc=cygwin-xfree@cygwin.com \
    --cc=dus@ornl.gov \
    --cc=info4km@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).