public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
From: Thomas Wolff <towo@computer.org>
To: cygwin-xfree@cygwin.com
Subject: Cygwin/X sends Focus events to wrong windows
Date: Thu, 14 Jun 2012 23:25:00 -0000	[thread overview]
Message-ID: <4FDA72D1.7040009@computer.org> (raw)

Testing with xev and two other windows A and B (X or native), the 
following can be observed:
(click into A, then into B; focus changes)
click into A, move mouse over xev (some MotionEvents will be reported), 
then click into B:
a FocusEvent is reported by xev although xev was not clicked

This does not happen always but often.
It confuses e.g. terminal windows, and their child processes if the 
terminal notifies them about Focus events (ESC[?1004h mode).
This can also be seen with xterm, although not quite easily:
In an xterm, enable Focus reporting mode. Then enable echo of control 
characters. Since for some reason, control character echoing with the ^[ 
notation does not work on cygwin, either a character tracing program 
could be started, or remote login to a Linux box and start 'cat' there.
Then click into xterm and another window, a few times.
Focus events should be reported as ESC[O (focus out) or ESC[I (focus in) 
but are often not in sync with the actual clicking.

------
Thomas

--
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/


                 reply	other threads:[~2012-06-14 23:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4FDA72D1.7040009@computer.org \
    --to=towo@computer.org \
    --cc=cygwin-xfree@cygwin.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).