Cygwin-X AWT windows snap back after drag in multi-window mode (w/example): long-standing issue

John Harris tamboril@gmail.com
Sun Feb 13 16:14:35 GMT 2022


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.

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:

  Exception in thread "main" java.awt.AWTError: Assistive Technology
not found: org.GNOME.Accessibility.AtkWrapper

...then you need to do these steps:

edit /etc/java-<ver>-openjdk/accessibility.properties, commenting out
the line that reads,
   assistive_technologies=org.GNOME.Accessibility.AtkWrapper

The attached program will demonstrate the issue. Also attached are
(shortened) cygcheck output and the XWin log.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SimpleEx.java
Type: application/octet-stream
Size: 520 bytes
Desc: not available
URL: <https://cygwin.com/pipermail/cygwin/attachments/20220213/9b26d732/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 14602 bytes
Desc: not available
URL: <https://cygwin.com/pipermail/cygwin/attachments/20220213/9b26d732/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: XWin.0.log
Type: application/octet-stream
Size: 4022 bytes
Desc: not available
URL: <https://cygwin.com/pipermail/cygwin/attachments/20220213/9b26d732/attachment-0005.obj>


More information about the Cygwin mailing list