public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
* Cygwin/X sends Focus events to wrong windows
@ 2012-06-14 23:25 Thomas Wolff
  0 siblings, 0 replies; only message in thread
From: Thomas Wolff @ 2012-06-14 23:25 UTC (permalink / raw)
  To: cygwin-xfree

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/


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-06-14 23:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-14 23:25 Cygwin/X sends Focus events to wrong windows Thomas Wolff

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).