delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Original-To: | cygwin AT cygwin DOT com |
Delivered-To: | cygwin AT cygwin DOT com |
DMARC-Filter: | OpenDMARC Filter v1.4.1 sourceware.org 5F4763858D3C |
Authentication-Results: | sourceware.org; |
dmarc=none (p=none dis=none) header.from=cs.umass.edu | |
Authentication-Results: | sourceware.org; spf=pass smtp.mailfrom=cs.umass.edu |
Message-ID: | <06715e64-2392-80c7-2cba-ff08a0e17726@cs.umass.edu> |
Date: | Sun, 30 Oct 2022 14:35:22 -0400 |
MIME-Version: | 1.0 |
User-Agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 |
Thunderbird/102.4.1 | |
Subject: | Re: New Windows open behind current ones rather than in front |
To: | Jon Turney <jon DOT turney AT dronecode DOT org DOT uk>, |
The Cygwin Mailing List <cygwin AT cygwin DOT com> | |
References: | <c9e9f12a-05ca-48d3-e221-559f0a9e6885 AT cs DOT umass DOT edu> |
<831ebd6a-431e-9355-c8d6-8645e90e1180 AT dronecode DOT org DOT uk> | |
From: | Eliot Moss <moss AT cs DOT umass DOT edu> |
In-Reply-To: | <831ebd6a-431e-9355-c8d6-8645e90e1180@dronecode.org.uk> |
X-Spam-Status: | No, score=-2.1 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL, |
KAM_DMARC_STATUS, NICE_REPLY_A, SPF_HELO_NONE, SPF_PASS, | |
TXREP autolearn=no autolearn_force=no version=3.4.6 | |
X-Spam-Checker-Version: | SpamAssassin 3.4.6 (2021-04-09) on |
server2.sourceware.org | |
X-BeenThere: | cygwin AT cygwin DOT com |
X-Mailman-Version: | 2.1.29 |
List-Id: | General Cygwin discussions and problem reports <cygwin.cygwin.com> |
List-Unsubscribe: | <https://cygwin.com/mailman/options/cygwin>, |
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe> | |
List-Archive: | <https://cygwin.com/pipermail/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-request AT cygwin DOT com?subject=help> |
List-Subscribe: | <https://cygwin.com/mailman/listinfo/cygwin>, |
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe> | |
Reply-To: | moss AT cs DOT umass DOT edu |
Errors-To: | cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com |
Sender: | "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com> |
X-MIME-Autoconverted: | from base64 to 8bit by delorie.com id 29UIa2U8002312 |
On 10/30/2022 8:21 AM, Jon Turney wrote: > On 14/10/2022 16:58, Eliot Moss wrote: >> Dear Cygwiners - >> >> I am having an issue under Windows 11 where new windows, when spawned from the command line of >> (say) Cygwin bash or WSL2 bash come up *behind* current Windows. This behavior seems new to >> Windows 11. Anybody know a setting or technique to control / change this? Two examples: >> >> - Spawn Word from Cygwin bash >> - Spawn okular from WSL 2 >> >> If I spawn xterm from Cygwin bash, it comes up in front, but from WSL2 bash, it comes up behind. >> My X server is the Cygwin one. Happy to provide more details if this is not enough. > > I have seen something like this on occasion with windows created by the Cygwin X server, but that > seems to be associated with having "focus follows mouse" mode turned on. > > I'm not sure if that os some problem in the way that the X server manages the Z-order of it's > windows, or something about the way that the X server creates windows interacting with any 'focus > stealing prevention' heuristic that windows has (See 'ForegroundLockTimeout'). > > Your first example doesn't seem to involve X at all, so I guess that points towards the second > theory... Thank you, Jon! I did a little more digging and found that following these instructions to turn on Windows "Prevent windows from being automatically arranged when moved to the edge of the screen" stopped X windows from starting behind the window of the command that spawned them: Go to "Control Panel". Select "Ease of Access". Select "Change how your mouse works". Enable the checkbox: "Prevent windows from being automatically arranged when moved to the edge of the screen." It does not seem to change the "new window comes up behind Cygwin xterm bash" for new windows that are Windows programs as opposed to X programs. I wonder if this could have anything to do with how Cygwin deals with spawning non-Cygwin programs ... Best - Eliot -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |