From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 118745 invoked by alias); 14 Apr 2017 11:23:22 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 118727 invoked by uid 89); 14 Apr 2017 11:23:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.2 required=5.0 tests=AWL,BAYES_20,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Package, focusing, focused, apps X-HELO: out1-smtp.messagingengine.com Received: from out1-smtp.messagingengine.com (HELO out1-smtp.messagingengine.com) (66.111.4.25) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 14 Apr 2017 11:23:20 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id E133E207F9 for ; Fri, 14 Apr 2017 07:23:20 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Fri, 14 Apr 2017 07:23:20 -0400 X-ME-Sender: Received: from [172.16.216.100] (unknown [46.140.38.66]) by mail.messagingengine.com (Postfix) with ESMTPA id 5273D246E4 for ; Fri, 14 Apr 2017 07:23:20 -0400 (EDT) From: "Nicolas Goy" To: cygwin@cygwin.com Subject: XWin focus in multiwindow mode Date: Fri, 14 Apr 2017 14:33:00 -0000 Message-Id: Reply-To: "Nicolas Goy" User-Agent: eM_Client/7.0.27943.0 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2017-04/txt/msg00171.txt.bz2 I noticed that a few apps don't manage focus properly when running under=20 XWin. Summary: Given a focused X11 app, focusing a native Windows window, the focus is=20 not lost in the X11 window. Steps to reproduce (with terminator): - Start terminator under XWin with multiwindow window manager - Focus a Windows window by clicking on it Expected behavior: - Focus should be lost from the terminator window Actual behavior: - The terminator window remains focused. (by focused I mean that the=20 caret remains plain, and the titlebar remains in the focused color, the=20 windows properly lose keyboard focus and other OS level focus) - Also, if I open a menu (in android studio for example), and click a=20 Windows window, the menu remains open. Notes: If I click another X11 windows, the focus is properly lost. It only=20 happens if I pass the focus from an X11 window to a native Windows=20 window. I tested a few X11 app, and not all have this behavior: Working app: - xterm - git-cola - st - konsole - chromium Apps showing the bug: - android-studio - terminator - gnome-terminal - termite Version: $ XWin --version=20=09=09 Welcome to the XWin X Server=20=09=09 Vendor: The Cygwin/X Project=20=09=09 Release: 1.19.2.0=20=09=09 OS: CYGWIN_NT-10.0 yoda 2.7.0(0.306/5/3) 2017-02-12 13:18 x86_64=20=09=09 OS: Windows 10 [Windows NT 10.0 build 15063] (Win64)=20=09=09 Package: version 1.19.2-1 built 2017-03-09=20=09=09 Started with. XWin -multiwindow -clipboard -silent-dup-error -listen tcp=20=09=09 -- Nicolas Goy Programmer -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple