www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/08/14/07:12:36

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 214453858CDB
Authentication-Results: sourceware.org; dmarc=none (p=none dis=none)
header.from=dronecode.org.uk
Authentication-Results: sourceware.org; spf=none smtp.mailfrom=dronecode.org.uk
Authentication-Results: btinternet.com;
auth=pass (PLAIN) smtp.auth=jonturney AT btinternet DOT com;
bimi=skipped
X-SNCR-Rigid: 613943C635649850
X-Originating-IP: [81.153.98.171]
X-OWM-Source-IP: 81.153.98.171 (GB)
X-OWM-Env-Sender: jonturney AT btinternet DOT com
X-VadeSecure-score: verdict=clean score=0/300, class=clean
X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgedvfedrvdehtddgfeekucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuueftkffvkffujffvgffngfevqffopdfqfgfvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefkffggfgfhuffvfhgjtgfgsehtjeertddtfeejnecuhfhrohhmpeflohhnucfvuhhrnhgvhicuoehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkqeenucggtffrrghtthgvrhhnpeeltdevudffieekuefggfehfeejgeffheffvdejlefgffffleetfedvtedvleetheenucffohhmrghinheptgihghifihhnrdgtohhmnecukfhppeekuddrudehfedrleekrddujedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghloheplgduledvrdduieekrddurddutdehngdpihhnvghtpeekuddrudehfedrleekrddujedupdhmrghilhhfrhhomhepjhhonhdrthhurhhnvgihsegurhhonhgvtghouggvrdhorhhgrdhukhdpnhgspghrtghpthhtohepvddprhgtphhtthhopegthihgfihinhestgihghifihhnrdgtohhmpdhrtghpthhtohepthgrmhgsohhrihhlsehgmhgrihhlrdgtohhm
X-RazorGate-Vade-Verdict: clean 0
X-RazorGate-Vade-Classification: clean
Message-ID: <8dc81338-b4c2-140f-cda3-bf173f5399c7@dronecode.org.uk>
Date: Sun, 14 Aug 2022 12:11:11 +0100
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.12.0
From: Jon Turney <jon DOT turney AT dronecode DOT org DOT uk>
Subject: Re: Cygwin-X AWT windows snap back after drag in multi-window mode
(w/example): long-standing issue
To: John Harris <tamboril AT gmail DOT com>,
The Cygwin Mailing List <cygwin AT cygwin DOT com>
References: <CAHbrQH6e8VdH3u-4m0DO=t3XvS11BxQy09a9hK6Y1FoJMWzOXA AT mail DOT gmail DOT com>
In-Reply-To: <CAHbrQH6e8VdH3u-4m0DO=t3XvS11BxQy09a9hK6Y1FoJMWzOXA@mail.gmail.com>
X-Spam-Status: No, score=-1192.1 required=5.0 tests=BAYES_00, FORGED_SPF_HELO,
KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, RCVD_IN_DNSWL_NONE,
SPF_HELO_PASS, SPF_NONE, TXREP,
T_SCC_BODY_TEXT_LINE 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>
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>

On 13/02/2022 16:14, John Harris wrote:
> For well over ten years, I (and other developers with the same
> configuration) have been experiencing this issue with Cygwin-X in
> multi-window mode with Java AWT apps.

Sigh.

> The issue is simply that the first time (and only the first time)
> certain AWT dialogs are dragged to move them, they snap back to their
> original position.
> 
> The problem exists across JDK's, computers, cygwin versions, fresh
> installs, and everything I've tried.
> 
> This can easily be reproduced by compiling (javac) and running (java)
> the attached trivial AWT code. If you get this error at runtime:

Thanks for the simple test case.

This looks like a problem in the same area as [1], where AWT tries to 
detect what WM it running under, but doesn't really understand about 
non-reparenting WMs and messes up...

This looks like a bug in AWT in that occurs with non-reparenting WMs 
(something like: learning the size of the "insets" (size of window frame 
and decorations) the first time a ConfigureNotify event occurs makes it 
move the window back to it's original location...)

You can see some of what's happening if you turn on the 
sun.awt.X11.XDecoratedPeer logger in AWT.

I tried a few things in the multiwindow mode WM as workarounds to avoid 
tripping over this behaviour in AWT, but without success, so I can only 
suggest you raise a bug on AWT.

[1] https://cygwin.com/pipermail/cygwin-xfree/2010-July/034625.html

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019