From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2817 invoked by alias); 14 Jun 2012 23:25:23 -0000 Received: (qmail 2804 invoked by uid 22791); 14 Jun 2012 23:25:22 -0000 X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from moutng.kundenserver.de (HELO moutng.kundenserver.de) (212.227.126.171) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 14 Jun 2012 23:25:09 +0000 Received: from [127.0.0.1] (dslb-088-073-137-042.pools.arcor-ip.net [88.73.137.42]) by mrelayeu.kundenserver.de (node=mreu0) with ESMTP (Nemesis) id 0MRyX8-1STfM82EDS-00TQUI; Fri, 15 Jun 2012 01:25:06 +0200 Message-ID: <4FDA72D1.7040009@computer.org> Date: Thu, 14 Jun 2012 23:25:00 -0000 From: Thomas Wolff User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:13.0) Gecko/20120604 Thunderbird/13.0 MIME-Version: 1.0 To: cygwin-xfree@cygwin.com Subject: Cygwin/X sends Focus events to wrong windows Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Reply-To: cygwin-xfree@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com X-SW-Source: 2012-06/txt/msg00013.txt.bz2 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/