X-Recipient: archive-cygwin AT delorie DOT 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:subject:references:cc:to:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=w0N0RTm4L+Z9lSfs raFglmFCj9+FSxX2jD9qk6bLmkJ/+UCFHnd7H0ju70ypc9BR1h9Q8tvh5PddlT04 vhCL4dG9ODp/9bMi1SmG0y3xhels6gToG4M5z1//X2Mda3aKakQqH4QLKUyAPLsL aZYyeEHDye8qWYxI5ai9KLnIQpE= 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:subject:references:cc:to:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=XdR54W7frCKFk5rLT6U4jB pKkKs=; b=TKuk003mmGsw2hwyUmSNMShHw/X8KYvyuwc3q/5h2d9t106Nggxilg CCY6qX/0AVq2EI0Nph5c9vxPx+klIlZsufEs5CB+4wviIXL2viWNfHREhAx6/sUi FZCmk+IaXQKpCi8KIaQZM49npOIug+dh5FViO7qRK3y8X5BxlhFx4= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=apps, standing, focusing, click X-HELO: out1-smtp.messagingengine.com X-ME-Sender: Subject: Re: XWin focus in multiwindow mode References: Cc: Nicolas Goy To: The Cygwin Mailing List From: Jon Turney Message-ID: <798fc5f4-8829-2e7e-2a71-6d85e9e97a7d@dronecode.org.uk> Date: Fri, 21 Apr 2017 12:51:02 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 14/04/2017 12:23, Nicolas Goy wrote: > 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) Thanks for the detailed bug report. It looks like we were never doing quite the right thing to remove the X input focus when losing Windows focus. I've uploaded xorg-server-1.19.3-1 with a fix for this. Perhaps you could try that and see if it improves things for you? > - Also, if I open a menu (in android studio for example), and click a > Windows window, the menu remains open. This is also a long standing bug, but is more complex to fix. At the moment, clicks outside X windows aren't seen by the server at all, hence this behaviour. -- Jon Turney Volunteer Cygwin/X X Server maintainer -- 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