X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:from:to:subject:date:message-id:reply-to
	:mime-version:content-type:content-transfer-encoding; q=dns; s=
	default; b=pVuFhu0dLdGz1idX5O8CgmO5mafdhlOoNFZ6rFgARygbDhZRT5ygf
	WkQ9joafFzVPs6c04NbpjhL5+xCYdG/phcvNZzJA3vt7teyO2gtVVZwy7zXgf/l/
	0HcVeZu2OZIdwJRcHM2D9pgl1LjkZUvAARzbl/h7sLBh2QSPCDZF1k=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:from:to:subject:date:message-id:reply-to
	:mime-version:content-type:content-transfer-encoding; s=default;
	 bh=yw/RErmvIUsqlmCGuLtjTSYJmlU=; b=XM/HNcaXLt/TlkSTyR9gEGc2mSwb
	gGbKon8rD4UE8PV3VOgoc1IKcuRvwlrkgQ164X2fdn85RjAb1aaLBFB0hp4/gGox
	fVSYlxNkJsqsMZkflIOX3twZCUBE/Yqw528wMRmDinWmblJmRlHDYz99CK0fLjkz
	NYJet4iWMAbMMw4=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
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
X-ME-Sender: <xms:KLHwWF2B5poEBfUPsDFHTxF7s2QQRK3YcmdHNTUSci5XqADold4Zhw>
From: "Nicolas Goy" <nicolas@goyman.com>
To: cygwin@cygwin.com
Subject: XWin focus in multiwindow mode
Date: Fri, 14 Apr 2017 11:23:18 +0000
Message-Id: <em7c369e65-ca44-43bd-9f42-5c6ba83cf542@yoda>
Reply-To: "Nicolas Goy" <nicolas@goyman.com>
User-Agent: eM_Client/7.0.27943.0
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset=utf-8
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id v3EBNZ54006508

I noticed that a few apps don't manage focus properly when running under 
XWin.

Summary:
Given a focused X11 app, focusing a native Windows window, the focus is 
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 
caret remains plain, and the titlebar remains in the focused color, the 
windows properly lose keyboard focus and other OS level focus)
- Also, if I open a menu (in android studio for example), and click a 
Windows window, the menu remains open.

Notes:
If I click another X11 windows, the focus is properly lost. It only 
happens if I pass the focus from an X11 window to a native Windows 
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 		
			Welcome to the XWin X Server 		
			Vendor: The Cygwin/X Project 		
			Release: 1.19.2.0 		
			OS: CYGWIN_NT-10.0 yoda 2.7.0(0.306/5/3) 2017-02-12 13:18 x86_64 		
			OS: Windows 10  [Windows NT 10.0 build 15063] (Win64) 		
			Package: version 1.19.2-1 built 2017-03-09 		

Started with.
			XWin -multiwindow -clipboard -silent-dup-error -listen tcp 		

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


