From: Jon Turney <jon.turney@dronecode.org.uk>
To: John Harris <tamboril@gmail.com>,
The Cygwin Mailing List <cygwin@cygwin.com>
Subject: Re: Cygwin-X AWT windows snap back after drag in multi-window mode (w/example): long-standing issue
Date: Sun, 14 Aug 2022 12:11:11 +0100 [thread overview]
Message-ID: <8dc81338-b4c2-140f-cda3-bf173f5399c7@dronecode.org.uk> (raw)
In-Reply-To: <CAHbrQH6e8VdH3u-4m0DO=t3XvS11BxQy09a9hK6Y1FoJMWzOXA@mail.gmail.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
prev parent reply other threads:[~2022-08-14 11:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-13 16:14 John Harris
2022-03-23 11:38 ` Fwd: " John Harris
2022-03-23 11:57 ` Mark Hansen
2022-08-14 11:11 ` Jon Turney [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8dc81338-b4c2-140f-cda3-bf173f5399c7@dronecode.org.uk \
--to=jon.turney@dronecode.org.uk \
--cc=cygwin@cygwin.com \
--cc=tamboril@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).