Cygwin/X sends Focus events to wrong windows

Thomas Wolff towo@computer.org
Thu Jun 14 23:25:00 GMT 2012


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/



More information about the Cygwin-xfree mailing list