public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Cygwin-X AWT windows snap back after drag in multi-window mode (w/example): long-standing issue
@ 2022-02-13 16:14 John Harris
  2022-03-23 11:38 ` Fwd: " John Harris
  2022-08-14 11:11 ` Jon Turney
  0 siblings, 2 replies; 4+ messages in thread
From: John Harris @ 2022-02-13 16:14 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 984 bytes --]

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.

[-- Attachment #2: SimpleEx.java --]
[-- Type: application/octet-stream, Size: 520 bytes --]

\rimport java.awt.EventQueue;
import javax.swing.JFrame;

public class SimpleEx extends JFrame {

    public SimpleEx() {

        initUI();
    }

    private void initUI() {
        
        setTitle("Simple example");
        setSize(300, 200);
        setLocationRelativeTo(null);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
    }

    public static void main(String[] args) {

        EventQueue.invokeLater(() -> {
            SimpleEx ex = new SimpleEx();
            ex.setVisible(true);
        });
    }
}

[-- Attachment #3: cygcheck.out --]
[-- Type: application/octet-stream, Size: 14602 bytes --]


Cygwin Configuration Diagnostics
Current System Time: Sun Feb 13 16:08:08 2022

Windows 10 Professional Ver 10.0 Build 19044 

Path:	C:\cygwin64\home\John Harris\bin
	C:\cygwin64\home\John Harris\.local\bin
	C:\cygwin64\bin
	C:\cygwin64\bin
	.
	C:\windows\system32

Output from C:\cygwin64\bin\id.exe
UID: 197609(John Harris)
GID: 197609(John Harris)
197609(John Harris)
401408(Medium Mandatory Level)
197612(docker-users)
559(Performance Log Users)
545(Users)
4(INTERACTIVE)
66049(CONSOLE LOGON)
11(Authenticated Users)
15(This Organization)
68431(MicrosoftAccount+tambo.ril@gmail.com)
113(Local account)
4095(CurrentSession)
66048(LOCAL)
262180(Cloud Account Authentication)

SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS

USER = 'John Harris'
PWD = '/home/John Harris'
HOME = '/home/John Harris'

USERDOMAIN = 'JHARRIS-DESKTOP'
OS = 'Windows_NT'
COMMONPROGRAMFILES = 'C:\Program Files\Common Files'
PROCESSOR_LEVEL = '6'
PSModulePath = 'C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules'
CommonProgramW6432 = 'C:\Program Files\Common Files'
CommonProgramFiles(x86) = 'C:\Program Files (x86)\Common Files'
TZ = 'America/Chicago'
HOSTNAME = 'JHARRIS-DESKTOP'
PUBLIC = 'C:\Users\Public'
OLDPWD = '/home/John Harris'
USERNAME = 'John Harris'
LOGONSERVER = '\\JHARRIS-DESKTOP'
PROCESSOR_ARCHITECTURE = 'AMD64'
LOCALAPPDATA = 'C:\Users\John Harris\AppData\Local'
COMPUTERNAME = 'JHARRIS-DESKTOP'
FPS_BROWSER_APP_PROFILE_STRING = 'Internet Explorer'
!:: = '::\'
SYSTEMDRIVE = 'C:'
USERPROFILE = 'C:\Users\John Harris'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'
SYSTEMROOT = 'C:\WINDOWS'
USERDOMAIN_ROAMINGPROFILE = 'JHARRIS-DESKTOP'
PROCESSOR_IDENTIFIER = 'Intel64 Family 6 Model 158 Stepping 9, GenuineIntel'
OneDriveConsumer = 'C:\Users\John Harris\OneDrive'
TMP = '/tmp'
LC_CTYPE = 'en_US.UTF-8'
TERM_PROGRAM = 'mintty'
QtMsBuild = 'C:\Users\John Harris\AppData\Local\QtMsBuild'
TERM_PROGRAM_VERSION = '3.4.4'
OneDrive = 'C:\Users\John Harris\OneDrive'
PROCESSOR_REVISION = '9e09'
FPS_BROWSER_USER_PROFILE_STRING = 'Default'
PROFILEREAD = 'true'
NUMBER_OF_PROCESSORS = '8'
ProgramW6432 = 'C:\Program Files'
COMSPEC = 'C:\WINDOWS\system32\cmd.exe'
APPDATA = 'C:\Users\John Harris\AppData\Roaming'
SHELL = '/bin/bash'
TERM = 'xterm'
WINDIR = 'C:\WINDOWS'
ProgramData = 'C:\ProgramData'
SHLVL = '1'
MINTTY_SHORTCUT = '/cygdrive/c/ProgramData/Microsoft/Windows/Start Menu/Programs/Cygwin/Cygwin64 Terminal.lnk'
PRINTER = 'Brother HL-2270DW series'
PROGRAMFILES = 'C:\Program Files'
ALLUSERSPROFILE = 'C:\ProgramData'
TEMP = '/tmp'
DokanLibrary1 = 'C:\Program Files\Dokan\Dokan Library-1.0.0\'
DriverData = 'C:\Windows\System32\Drivers\DriverData'
asl.log = 'Destination=file'
SESSIONNAME = 'Console'
ProgramFiles(x86) = 'C:\Program Files (x86)'
PS1 = '\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ '
HOMEDRIVE = 'C:'
INFOPATH = '/usr/local/info:/usr/share/info:/usr/info'
HOMEPATH = '\Users\John Harris'
ORIGINAL_PATH = '/cygdrive/c/Program Files (x86)/Intel/iCLS Client:/cygdrive/c/Python27:/cygdrive/c/Python27/Scripts:/cygdrive/c/Program Files/Intel/iCLS Client:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/WINDOWS/System32/WindowsPowerShell/v1.0:/cygdrive/c/WINDOWS/System32/OpenSSH:/cygdrive/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL:/cygdrive/c/Program Files/Intel/Intel(R) Management Engine Components/DAL:/cygdrive/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/IPT:/cygdrive/c/Program Files/Intel/Intel(R) Management Engine Components/IPT:/cygdrive/c/Program Files (x86)/Windows Kits/10/Windows Performance Toolkit:/cygdrive/c/Program Files/Docker/Docker/resources/bin:/cygdrive/c/ProgramData/DockerDesktop/version-bin:/cygdrive/c/Users/John Harris/AppData/Local/Microsoft/WindowsApps:/cygdrive/c/Program Files (x86)/Dell/Dell Display Manager:/usr/bin'
EXECIGNORE = '*.dll'
VBOX_MSI_INSTALL_PATH = 'C:\Program Files\Oracle\VirtualBox\'
_ = '/bin/cygcheck'

HKEY_CURRENT_USER\SOFTWARE\Cygwin
HKEY_CURRENT_USER\SOFTWARE\Cygwin\Installations
  (default) = '\??\C:\cygwin64'
  9d8973b6320a2a89 = '\??\C:\Program Files\SSHFS-Win'
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\cygwin64_bash
  (default) = '&Bash Prompt Here'
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\cygwin64_bash\command
  (default) = 'C:\cygwin64\bin\mintty.exe -e /bin/xhere /bin/bash.exe "%V"'
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\cygwin64_bash
  (default) = '&Bash Prompt Here'
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\cygwin64_bash\command
  (default) = 'C:\cygwin64\bin\mintty.exe -e /bin/xhere /bin/bash.exe "%L"'
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\XLaunch.cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\XLaunch.cygwin\DefaultIcon
  (default) = 'C:\cygwin64\bin\xlaunch.exe.exe,1'
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\XLaunch.cygwin\Shell
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\XLaunch.cygwin\Shell\Edit
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\XLaunch.cygwin\Shell\Edit\command
  (default) = '"C:\cygwin64\bin\run.exe" --quote "C:\cygwin64\bin\bash.exe" -l -c "xlaunch -load \"$(cygpath '%1')\""'
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\XLaunch.cygwin\Shell\Open
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\XLaunch.cygwin\Shell\Open\command
  (default) = '"C:\cygwin64\bin\run.exe" --quote "C:\cygwin64\bin\bash.exe" -l -c "xlaunch -run \"$(cygpath '%1')\""'
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\Installations
  (default) = '\??\C:\cygwin64'
  9d8973b6320a2a89 = '\??\C:\Program Files\SSHFS-Win'
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\setup
  (default) = 'C:\cygwin64'
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\cygwin64_bash
  (default) = 'Cygwin Bash Prompt Here (x86_64)'
  UnInstallString = 'C:\cygwin64\bin\sh.exe -c "PATH=/bin /bin/chere -u -s bash"'

obcaseinsensitive set to 1

Cygwin installations found in the registry:
  System: Key: e022582115c10879 Path: C:\cygwin64
  System: Key: 9d8973b6320a2a89 Path: C:\Program Files\SSHFS-Win
  User:   Key: e022582115c10879 Path: C:\cygwin64
  User:   Key: 9d8973b6320a2a89 Path: C:\Program Files\SSHFS-Win

c:  hd  NTFS    942270Mb  57% CP CS UN PA FC    QU  
d:  hd  NTFS    476922Mb  96% CP CS UN PA FC    QU  Spinning
e:  hd  NTFS     10240Mb   3% CP CS UN PA FC    QU  Encrypted
g:  hd  FAT32    19456Mb  29% CP    UN              tamboril@gmail.com - Google D...
h:  hd  FAT32   942270Mb  59% CP    UN              admin@bravoaviation.aero - Go...

C:\cygwin64      /          system  binary,auto
C:\cygwin64\bin  /usr/bin   system  binary,auto
C:\cygwin64\lib  /usr/lib   system  binary,auto
cygdrive prefix  /cygdrive  user    binary,noacl,posix=0,auto

Found: C:\cygwin64\bin\awk
Found: C:\cygwin64\bin\awk
 -> C:\cygwin64\bin\gawk.exe
Found: C:\cygwin64\bin\bash.exe
Found: C:\cygwin64\bin\bash.exe
Found: C:\windows\system32\bash.exe
Warning: C:\cygwin64\bin\bash.exe hides C:\windows\system32\bash.exe
Found: C:\cygwin64\bin\cat.exe
Found: C:\cygwin64\bin\cat.exe
Found: C:\windows\system32\certutil.exe
Not Found: clinfo
Found: C:\windows\system32\comp.exe
Found: C:\windows\system32\convert.exe
Found: C:\cygwin64\bin\cp.exe
Found: C:\cygwin64\bin\cp.exe
Not Found: cpp (good!)
Not Found: crontab
Found: C:\cygwin64\bin\curl.exe
Found: C:\cygwin64\bin\curl.exe
Found: C:\windows\system32\curl.exe
Warning: C:\cygwin64\bin\curl.exe hides C:\windows\system32\curl.exe
Found: C:\cygwin64\bin\expand.exe
Found: C:\cygwin64\bin\expand.exe
Found: C:\windows\system32\expand.exe
Warning: C:\cygwin64\bin\expand.exe hides C:\windows\system32\expand.exe
Found: C:\cygwin64\bin\find.exe
Found: C:\cygwin64\bin\find.exe
Found: C:\windows\system32\find.exe
Warning: C:\cygwin64\bin\find.exe hides C:\windows\system32\find.exe
Found: C:\cygwin64\bin\ftp.exe
Found: C:\cygwin64\bin\ftp.exe
Found: C:\windows\system32\ftp.exe
Warning: C:\cygwin64\bin\ftp.exe hides C:\windows\system32\ftp.exe
Not Found: gcc
Not Found: gdb
Found: C:\cygwin64\bin\grep.exe
Found: C:\cygwin64\bin\grep.exe
Found: C:\cygwin64\bin\hostname.exe
Found: C:\cygwin64\bin\hostname.exe
Found: C:\windows\system32\hostname.exe
Warning: C:\cygwin64\bin\hostname.exe hides C:\windows\system32\hostname.exe
Found: C:\cygwin64\bin\kill.exe
Found: C:\cygwin64\bin\kill.exe
Found: C:\windows\system32\klist.exe
Found: C:\cygwin64\bin\ld.exe
Found: C:\cygwin64\bin\ld.exe
Found: C:\cygwin64\bin\ls.exe
Found: C:\cygwin64\bin\ls.exe
Not Found: make
Found: C:\cygwin64\bin\mv.exe
Found: C:\cygwin64\bin\mv.exe
Found: C:\windows\system32\nslookup.exe
Not Found: patch
Found: C:\cygwin64\bin\perl.exe
Found: C:\cygwin64\bin\perl.exe
Found: C:\windows\system32\replace.exe
Found: C:\cygwin64\bin\rm.exe
Found: C:\cygwin64\bin\rm.exe
Found: C:\cygwin64\bin\sed.exe
Found: C:\cygwin64\bin\sed.exe
Found: C:\cygwin64\bin\sh.exe
Found: C:\cygwin64\bin\sh.exe
Found: C:\cygwin64\bin\shutdown.exe
Found: C:\cygwin64\bin\shutdown.exe
Found: C:\windows\system32\shutdown.exe
Warning: C:\cygwin64\bin\shutdown.exe hides C:\windows\system32\shutdown.exe
Found: C:\cygwin64\bin\sort.exe
Found: C:\cygwin64\bin\sort.exe
Found: C:\windows\system32\sort.exe
Warning: C:\cygwin64\bin\sort.exe hides C:\windows\system32\sort.exe
Found: C:\cygwin64\bin\ssh.exe
Found: C:\cygwin64\bin\ssh.exe
Found: C:\cygwin64\bin\tar.exe
Found: C:\cygwin64\bin\tar.exe
Found: C:\windows\system32\tar.exe
Warning: C:\cygwin64\bin\tar.exe hides C:\windows\system32\tar.exe
Found: C:\cygwin64\bin\test.exe
Found: C:\cygwin64\bin\test.exe
Found: C:\cygwin64\bin\timeout.exe
Found: C:\cygwin64\bin\timeout.exe
Found: C:\windows\system32\timeout.exe
Warning: C:\cygwin64\bin\timeout.exe hides C:\windows\system32\timeout.exe
Found: C:\cygwin64\bin\vi.exe
Found: C:\cygwin64\bin\vi.exe
Found: C:\cygwin64\bin\vim.exe
Found: C:\cygwin64\bin\vim.exe
Found: C:\cygwin64\bin\whoami.exe
Found: C:\cygwin64\bin\whoami.exe
Found: C:\windows\system32\whoami.exe
Warning: C:\cygwin64\bin\whoami.exe hides C:\windows\system32\whoami.exe

  716k 2020/12/28 C:\cygwin64\bin\cygarchive-13.dll - os=4.0 img=0.0 sys=5.2
                  "cygarchive-13.dll" v0.0 ts=2020-12-28 15:11
   39k 2016/09/19 C:\cygwin64\bin\cygargp-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygargp-0.dll" v0.0 ts=2016-09-19 02:13
   65k 2019/05/02 C:\cygwin64\bin\cygassuan-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygassuan-0.dll" v0.0 ts=2019-05-02 12:33
  118k 2018/02/11 C:\cygwin64\bin\cygatk-1.0-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygatk-1.0-0.dll" v0.0 ts=2018-02-11 23:28
   19k 2018/12/20 C:\cygwin64\bin\cygattr-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygattr-1.dll" v0.0 ts=2018-12-20 09:48
  254k 2020/03/31 C:\cygwin64\bin\cygblkid-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygblkid-1.dll" v0.0 ts=2020-03-28 06:22
  132k 2020/10/10 C:\cygwin64\bin\cygbrotlicommon-1.dll - os=4.0 img=1.0 sys=5.2
                  "cygbrotlicommon-1.dll" v0.0 ts=2020-10-10 15:20
   46k 2020/10/10 C:\cygwin64\bin\cygbrotlidec-1.dll - os=4.0 img=1.0 sys=5.2
                  "cygbrotlidec-1.dll" v0.0 ts=2020-10-10 15:21
   66k 2019/07/21 C:\cygwin64\bin\cygbz2-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygbz2-1.dll" v0.0 ts=2019-07-22 00:05
 1114k 2020/12/24 C:\cygwin64\bin\cygcairo-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygcairo-2.dll" v0.0 ts=2020-12-24 22:17
   27k 2020/12/24 C:\cygwin64\bin\cygcairo-gobject-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygcairo-gobject-2.dll" v0.0 ts=2020-12-24 22:17
  127k 2020/12/24 C:\cygwin64\bin\cygcairo-script-interpreter-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygcairo-script-interpreter-2.dll" v0.0 ts=2020-12-24 22:18
   71k 2018/03/16 C:\cygwin64\bin\cygcares-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygcares-2.dll" v0.0 ts=2018-03-16 02:33
   42k 2020/02/17 C:\cygwin64\bin\cygcbor-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygcbor-0.dll" v0.0 ts=2020-02-17 12:04
   13k 2019/01/02 C:\cygwin64\bin\cygcom_err-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygcom_err-2.dll" v0.0 ts=2019-01-02 02:39
  203k 2017/04/25 C:\cygwin64\bin\cygcroco-0.6-3.dll - os=4.0 img=0.0 sys=5.2
                  "cygcroco-0.6-3.dll" v0.0 ts=2017-04-25 17:03
   39k 2017/09/03 C:\cygwin64\bin\cygcrypt-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygcrypt-0.dll" v0.0 ts=2017-09-03 08:18
  194k 2019/04/03 C:\cygwin64\bin\cygcrypt-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygcrypt-2.dll" v0.0 ts=2019-04-03 22:05
 2363k 2019/09/11 C:\cygwin64\bin\cygcrypto-1.0.0.dll - os=4.0 img=0.0 sys=5.2
                  "cygcrypto-1.0.0.dll" v0.0 ts=2019-09-11 18:40
 2451k 2020/04/08 C:\cygwin64\bin\cygcrypto-1.1.dll - os=4.0 img=0.0 sys=5.2
                  "cygcrypto-1.1.dll" v0.0 ts=2020-04-08 12:11
  632k 2020/12/14 C:\cygwin64\bin\cygcurl-4.dll - os=4.0 img=0.0 sys=5.2
                  "cygcurl-4.dll" v0.0 ts=2020-12-12 19:20
   24k 2014/11/12 C:\cygwin64\bin\cygdatrie-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygdatrie-1.dll" v0.0 ts=2014-11-12 07:24
 1552k 2017/09/28 C:\cygwin64\bin\cygdb-5.3.dll - os=4.0 img=0.0 sys=5.2
                  "cygdb-5.3.dll" v0.0 ts=2017-09-28 20:05
  267k 2017/08/10 C:\cygwin64\bin\cygdbus-1-3.dll - os=4.0 img=0.0 sys=5.2
                  "cygdbus-1-3.dll" v0.0 ts=2017-08-10 06:10
  119k 2017/09/28 C:\cygwin64\bin\cygdb_cxx-5.3.dll - os=4.0 img=0.0 sys=5.2
                  "cygdb_cxx-5.3.dll" v0.0 ts=2017-09-28 20:06
  569k 2017/09/28 C:\cygwin64\bin\cygdb_sql-5.3.dll - os=4.0 img=0.0 sys=5.2
                  "cygdb_sql-5.3.dll" v0.0 ts=2017-09-28 20:06
   52k 2020/11/10 C:\cygwin64\bin\cygdeflate-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygdeflate-0.dll" v0.0 ts=2020-11-10 13:20
   16k 2019/09/05 C:\cygwin64\bin\cygdmx-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygdmx-1.dll" v0.0 ts=2019-09-05 22:01
  154k 2013/10/20 C:\cygwin64\bin\cygedit-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygedit-0.dll" v0.0 ts=2013-10-20 21:56
  128k 2019/09/05 C:\cygwin64\bin\cygEGL-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygEGL-1.dll" v0.0 ts=2019-09-05 16:21
  181k 2018/11/24 C:\cygwin64\bin\cygexpat-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygexpat-1.dll" v0.0 ts=2018-09-27 18:30
   30k 2014/10/14 C:\cygwin64\bin\cygfam-0.dll - os=4.0 img=0.0 sys=5.2
elided for size

[-- Attachment #4: XWin.0.log --]
[-- Type: application/octet-stream, Size: 4022 bytes --]

Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 1.20.10.0
OS: CYGWIN_NT-10.0-19044 JHARRIS-DESKTOP 3.1.7-340.x86_64 2020-08-22 17:48 UTC x86_64
OS: Windows 10  [Windows NT 10.0 build 19044] (Win64)
Package: version 1.20.10-1 built 2020-12-21

XWin was started with the following command line:

/usr/bin/XWin :0 -multiwindow -auth 
 /home/John Harris/.serverauth.1095 

ddxProcessArgument - Initializing default screens
winInitializeScreenDefaults - primary monitor w 2560 h 1440
winInitializeScreenDefaults - native DPI x 96 y 96
[223884.875] (II) xorg.conf is not supported
[223884.875] (II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
[223884.875] LoadPreferences: /home/John Harris/.XWinrc not found
[223884.890] LoadPreferences: Loading /etc/X11/system.XWinrc
[223884.890] LoadPreferences: Done parsing the configuration file...
[223884.890] winDetectSupportedEngines - RemoteSession: no
[223885.078] winDetectSupportedEngines - DirectDraw4 installed, allowing ShadowDDNL
[223885.078] winDetectSupportedEngines - Returning, supported engines 00000005
[223885.078] winSetEngine - Multi Window or Rootless => ShadowGDI
[223885.078] winScreenInit - Using Windows display depth of 32 bits per pixel
[223885.109] winAllocateFBShadowGDI - Creating DIB with width: 4000 height: 2560 depth: 32
[223885.109] winFinishScreenInitFB - Masks: 00ff0000 0000ff00 000000ff
[223885.109] winInitVisualsShadowGDI - Masks 00ff0000 0000ff00 000000ff BPRGB 8 d 24 bpp 32
[223885.109] MIT-SHM extension disabled due to lack of kernel support
[223885.109] XFree86-Bigfont extension local-client optimization disabled due to lack of shared memory support in the kernel
[223885.125] glWinSelectGLimplementation: Loaded 'cygnativeGLthunk.dll'
[223885.203] (II) AIGLX: Testing pixelFormatIndex 5
[223885.250] GL_VERSION:     4.6.0 NVIDIA 456.71
[223885.250] GL_VENDOR:      NVIDIA Corporation
[223885.250] GL_RENDERER:    GeForce GTX 1070/PCIe/SSE2
[223885.250] (II) GLX: enabled GLX_SGI_make_current_read
[223885.250] (II) GLX: enabled GLX_SGI_swap_control
[223885.250] (II) GLX: enabled GLX_MESA_swap_control
[223885.250] (II) GLX: enabled GLX_SGIX_pbuffer
[223885.250] (II) GLX: enabled GLX_ARB_multisample
[223885.250] (II) GLX: enabled GLX_SGIS_multisample
[223885.250] (II) GLX: enabled GLX_ARB_fbconfig_float
[223885.250] (II) GLX: enabled GLX_EXT_fbconfig_packed_float
[223885.250] (II) GLX: enabled GLX_ARB_create_context
[223885.250] (II) GLX: enabled GLX_ARB_create_context_profile
[223885.250] (II) GLX: enabled GLX_ARB_create_context_robustness
[223885.250] (II) GLX: enabled GLX_EXT_create_context_es2_profile
[223885.250] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[223885.250] (II) 670 pixel formats reported by wglGetPixelFormatAttribivARB
[223885.281] (II) 634 fbConfigs
[223885.281] (II) ignored pixel formats: 0 not OpenGL, 0 unknown pixel type, 36 unaccelerated
[223885.281] (II) GLX: Initialized Win32 native WGL GL provider for screen 0
[223885.593] winPointerWarpCursor - Discarding first warp: 2000 1280
[223885.593] (--) 16 mouse buttons found
[223885.593] (--) Setting autorepeat to delay=500, rate=31
[223885.593] (--) Windows keyboard layout: "00000409" (00000409) "US", type 4
[223885.593] (--) Found matching XKB configuration "English (USA)"
[223885.593] (--) Model = "pc105" Layout = "us" Variant = "none" Options = "none"
[223885.593] Rules = "base" Model = "pc105" Layout = "us" Variant = "none" Options = "none"
[223885.593] [223885.593] winInitMultiWindowWM - DISPLAY=:0.0
winMultiWindowXMsgProc - DISPLAY=:0.0
[223885.687] winInitMultiWindowWM - xcb_connect () returned and successfully opened the display.
[223885.687] winProcEstablishConnection - winInitClipboard returned.
[223885.687] winClipboardThreadProc - DISPLAY=:0.0
[223885.687] winMultiWindowXMsgProc - xcb_connect() returned and successfully opened the display.
[223885.687] winClipboardProc - xcb_connect () returned and successfully opened the display.
[223885.687] Using Composite redirection

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Fwd: Cygwin-X AWT windows snap back after drag in multi-window mode (w/example): long-standing issue
  2022-02-13 16:14 Cygwin-X AWT windows snap back after drag in multi-window mode (w/example): long-standing issue John Harris
@ 2022-03-23 11:38 ` John Harris
  2022-03-23 11:57   ` Mark Hansen
  2022-08-14 11:11 ` Jon Turney
  1 sibling, 1 reply; 4+ messages in thread
From: John Harris @ 2022-03-23 11:38 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 1535 bytes --]

I'm trying one more posting of this from a month ago hopefully to get
more eyes on it (got no replies last time). I apologize for the
repeat, and will stop if no one has any leads on how to fix this. It's
such a frustrating bug that's easily reproducible and only happens
with Cygwin-X multi window mode.

---------- Forwarded message ---------
From: John Harris <tamboril@gmail.com>
Date: Sun, Feb 13, 2022 at 10:14 AM
Subject: Cygwin-X AWT windows snap back after drag in multi-window
mode (w/example): long-standing issue
To: <cygwin@cygwin.com>


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.

[-- Attachment #2: SimpleEx.java --]
[-- Type: application/ms-java, Size: 520 bytes --]

[-- Attachment #3: cygcheck.out --]
[-- Type: application/octet-stream, Size: 14602 bytes --]


Cygwin Configuration Diagnostics
Current System Time: Sun Feb 13 16:08:08 2022

Windows 10 Professional Ver 10.0 Build 19044 

Path:	C:\cygwin64\home\John Harris\bin
	C:\cygwin64\home\John Harris\.local\bin
	C:\cygwin64\bin
	C:\cygwin64\bin
	.
	C:\windows\system32

Output from C:\cygwin64\bin\id.exe
UID: 197609(John Harris)
GID: 197609(John Harris)
197609(John Harris)
401408(Medium Mandatory Level)
197612(docker-users)
559(Performance Log Users)
545(Users)
4(INTERACTIVE)
66049(CONSOLE LOGON)
11(Authenticated Users)
15(This Organization)
68431(MicrosoftAccount+tambo.ril@gmail.com)
113(Local account)
4095(CurrentSession)
66048(LOCAL)
262180(Cloud Account Authentication)

SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS

USER = 'John Harris'
PWD = '/home/John Harris'
HOME = '/home/John Harris'

USERDOMAIN = 'JHARRIS-DESKTOP'
OS = 'Windows_NT'
COMMONPROGRAMFILES = 'C:\Program Files\Common Files'
PROCESSOR_LEVEL = '6'
PSModulePath = 'C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules'
CommonProgramW6432 = 'C:\Program Files\Common Files'
CommonProgramFiles(x86) = 'C:\Program Files (x86)\Common Files'
TZ = 'America/Chicago'
HOSTNAME = 'JHARRIS-DESKTOP'
PUBLIC = 'C:\Users\Public'
OLDPWD = '/home/John Harris'
USERNAME = 'John Harris'
LOGONSERVER = '\\JHARRIS-DESKTOP'
PROCESSOR_ARCHITECTURE = 'AMD64'
LOCALAPPDATA = 'C:\Users\John Harris\AppData\Local'
COMPUTERNAME = 'JHARRIS-DESKTOP'
FPS_BROWSER_APP_PROFILE_STRING = 'Internet Explorer'
!:: = '::\'
SYSTEMDRIVE = 'C:'
USERPROFILE = 'C:\Users\John Harris'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'
SYSTEMROOT = 'C:\WINDOWS'
USERDOMAIN_ROAMINGPROFILE = 'JHARRIS-DESKTOP'
PROCESSOR_IDENTIFIER = 'Intel64 Family 6 Model 158 Stepping 9, GenuineIntel'
OneDriveConsumer = 'C:\Users\John Harris\OneDrive'
TMP = '/tmp'
LC_CTYPE = 'en_US.UTF-8'
TERM_PROGRAM = 'mintty'
QtMsBuild = 'C:\Users\John Harris\AppData\Local\QtMsBuild'
TERM_PROGRAM_VERSION = '3.4.4'
OneDrive = 'C:\Users\John Harris\OneDrive'
PROCESSOR_REVISION = '9e09'
FPS_BROWSER_USER_PROFILE_STRING = 'Default'
PROFILEREAD = 'true'
NUMBER_OF_PROCESSORS = '8'
ProgramW6432 = 'C:\Program Files'
COMSPEC = 'C:\WINDOWS\system32\cmd.exe'
APPDATA = 'C:\Users\John Harris\AppData\Roaming'
SHELL = '/bin/bash'
TERM = 'xterm'
WINDIR = 'C:\WINDOWS'
ProgramData = 'C:\ProgramData'
SHLVL = '1'
MINTTY_SHORTCUT = '/cygdrive/c/ProgramData/Microsoft/Windows/Start Menu/Programs/Cygwin/Cygwin64 Terminal.lnk'
PRINTER = 'Brother HL-2270DW series'
PROGRAMFILES = 'C:\Program Files'
ALLUSERSPROFILE = 'C:\ProgramData'
TEMP = '/tmp'
DokanLibrary1 = 'C:\Program Files\Dokan\Dokan Library-1.0.0\'
DriverData = 'C:\Windows\System32\Drivers\DriverData'
asl.log = 'Destination=file'
SESSIONNAME = 'Console'
ProgramFiles(x86) = 'C:\Program Files (x86)'
PS1 = '\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ '
HOMEDRIVE = 'C:'
INFOPATH = '/usr/local/info:/usr/share/info:/usr/info'
HOMEPATH = '\Users\John Harris'
ORIGINAL_PATH = '/cygdrive/c/Program Files (x86)/Intel/iCLS Client:/cygdrive/c/Python27:/cygdrive/c/Python27/Scripts:/cygdrive/c/Program Files/Intel/iCLS Client:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/WINDOWS/System32/WindowsPowerShell/v1.0:/cygdrive/c/WINDOWS/System32/OpenSSH:/cygdrive/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL:/cygdrive/c/Program Files/Intel/Intel(R) Management Engine Components/DAL:/cygdrive/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/IPT:/cygdrive/c/Program Files/Intel/Intel(R) Management Engine Components/IPT:/cygdrive/c/Program Files (x86)/Windows Kits/10/Windows Performance Toolkit:/cygdrive/c/Program Files/Docker/Docker/resources/bin:/cygdrive/c/ProgramData/DockerDesktop/version-bin:/cygdrive/c/Users/John Harris/AppData/Local/Microsoft/WindowsApps:/cygdrive/c/Program Files (x86)/Dell/Dell Display Manager:/usr/bin'
EXECIGNORE = '*.dll'
VBOX_MSI_INSTALL_PATH = 'C:\Program Files\Oracle\VirtualBox\'
_ = '/bin/cygcheck'

HKEY_CURRENT_USER\SOFTWARE\Cygwin
HKEY_CURRENT_USER\SOFTWARE\Cygwin\Installations
  (default) = '\??\C:\cygwin64'
  9d8973b6320a2a89 = '\??\C:\Program Files\SSHFS-Win'
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\cygwin64_bash
  (default) = '&Bash Prompt Here'
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\cygwin64_bash\command
  (default) = 'C:\cygwin64\bin\mintty.exe -e /bin/xhere /bin/bash.exe "%V"'
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\cygwin64_bash
  (default) = '&Bash Prompt Here'
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\cygwin64_bash\command
  (default) = 'C:\cygwin64\bin\mintty.exe -e /bin/xhere /bin/bash.exe "%L"'
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\XLaunch.cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\XLaunch.cygwin\DefaultIcon
  (default) = 'C:\cygwin64\bin\xlaunch.exe.exe,1'
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\XLaunch.cygwin\Shell
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\XLaunch.cygwin\Shell\Edit
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\XLaunch.cygwin\Shell\Edit\command
  (default) = '"C:\cygwin64\bin\run.exe" --quote "C:\cygwin64\bin\bash.exe" -l -c "xlaunch -load \"$(cygpath '%1')\""'
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\XLaunch.cygwin\Shell\Open
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\XLaunch.cygwin\Shell\Open\command
  (default) = '"C:\cygwin64\bin\run.exe" --quote "C:\cygwin64\bin\bash.exe" -l -c "xlaunch -run \"$(cygpath '%1')\""'
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\Installations
  (default) = '\??\C:\cygwin64'
  9d8973b6320a2a89 = '\??\C:\Program Files\SSHFS-Win'
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\setup
  (default) = 'C:\cygwin64'
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\cygwin64_bash
  (default) = 'Cygwin Bash Prompt Here (x86_64)'
  UnInstallString = 'C:\cygwin64\bin\sh.exe -c "PATH=/bin /bin/chere -u -s bash"'

obcaseinsensitive set to 1

Cygwin installations found in the registry:
  System: Key: e022582115c10879 Path: C:\cygwin64
  System: Key: 9d8973b6320a2a89 Path: C:\Program Files\SSHFS-Win
  User:   Key: e022582115c10879 Path: C:\cygwin64
  User:   Key: 9d8973b6320a2a89 Path: C:\Program Files\SSHFS-Win

c:  hd  NTFS    942270Mb  57% CP CS UN PA FC    QU  
d:  hd  NTFS    476922Mb  96% CP CS UN PA FC    QU  Spinning
e:  hd  NTFS     10240Mb   3% CP CS UN PA FC    QU  Encrypted
g:  hd  FAT32    19456Mb  29% CP    UN              tamboril@gmail.com - Google D...
h:  hd  FAT32   942270Mb  59% CP    UN              admin@bravoaviation.aero - Go...

C:\cygwin64      /          system  binary,auto
C:\cygwin64\bin  /usr/bin   system  binary,auto
C:\cygwin64\lib  /usr/lib   system  binary,auto
cygdrive prefix  /cygdrive  user    binary,noacl,posix=0,auto

Found: C:\cygwin64\bin\awk
Found: C:\cygwin64\bin\awk
 -> C:\cygwin64\bin\gawk.exe
Found: C:\cygwin64\bin\bash.exe
Found: C:\cygwin64\bin\bash.exe
Found: C:\windows\system32\bash.exe
Warning: C:\cygwin64\bin\bash.exe hides C:\windows\system32\bash.exe
Found: C:\cygwin64\bin\cat.exe
Found: C:\cygwin64\bin\cat.exe
Found: C:\windows\system32\certutil.exe
Not Found: clinfo
Found: C:\windows\system32\comp.exe
Found: C:\windows\system32\convert.exe
Found: C:\cygwin64\bin\cp.exe
Found: C:\cygwin64\bin\cp.exe
Not Found: cpp (good!)
Not Found: crontab
Found: C:\cygwin64\bin\curl.exe
Found: C:\cygwin64\bin\curl.exe
Found: C:\windows\system32\curl.exe
Warning: C:\cygwin64\bin\curl.exe hides C:\windows\system32\curl.exe
Found: C:\cygwin64\bin\expand.exe
Found: C:\cygwin64\bin\expand.exe
Found: C:\windows\system32\expand.exe
Warning: C:\cygwin64\bin\expand.exe hides C:\windows\system32\expand.exe
Found: C:\cygwin64\bin\find.exe
Found: C:\cygwin64\bin\find.exe
Found: C:\windows\system32\find.exe
Warning: C:\cygwin64\bin\find.exe hides C:\windows\system32\find.exe
Found: C:\cygwin64\bin\ftp.exe
Found: C:\cygwin64\bin\ftp.exe
Found: C:\windows\system32\ftp.exe
Warning: C:\cygwin64\bin\ftp.exe hides C:\windows\system32\ftp.exe
Not Found: gcc
Not Found: gdb
Found: C:\cygwin64\bin\grep.exe
Found: C:\cygwin64\bin\grep.exe
Found: C:\cygwin64\bin\hostname.exe
Found: C:\cygwin64\bin\hostname.exe
Found: C:\windows\system32\hostname.exe
Warning: C:\cygwin64\bin\hostname.exe hides C:\windows\system32\hostname.exe
Found: C:\cygwin64\bin\kill.exe
Found: C:\cygwin64\bin\kill.exe
Found: C:\windows\system32\klist.exe
Found: C:\cygwin64\bin\ld.exe
Found: C:\cygwin64\bin\ld.exe
Found: C:\cygwin64\bin\ls.exe
Found: C:\cygwin64\bin\ls.exe
Not Found: make
Found: C:\cygwin64\bin\mv.exe
Found: C:\cygwin64\bin\mv.exe
Found: C:\windows\system32\nslookup.exe
Not Found: patch
Found: C:\cygwin64\bin\perl.exe
Found: C:\cygwin64\bin\perl.exe
Found: C:\windows\system32\replace.exe
Found: C:\cygwin64\bin\rm.exe
Found: C:\cygwin64\bin\rm.exe
Found: C:\cygwin64\bin\sed.exe
Found: C:\cygwin64\bin\sed.exe
Found: C:\cygwin64\bin\sh.exe
Found: C:\cygwin64\bin\sh.exe
Found: C:\cygwin64\bin\shutdown.exe
Found: C:\cygwin64\bin\shutdown.exe
Found: C:\windows\system32\shutdown.exe
Warning: C:\cygwin64\bin\shutdown.exe hides C:\windows\system32\shutdown.exe
Found: C:\cygwin64\bin\sort.exe
Found: C:\cygwin64\bin\sort.exe
Found: C:\windows\system32\sort.exe
Warning: C:\cygwin64\bin\sort.exe hides C:\windows\system32\sort.exe
Found: C:\cygwin64\bin\ssh.exe
Found: C:\cygwin64\bin\ssh.exe
Found: C:\cygwin64\bin\tar.exe
Found: C:\cygwin64\bin\tar.exe
Found: C:\windows\system32\tar.exe
Warning: C:\cygwin64\bin\tar.exe hides C:\windows\system32\tar.exe
Found: C:\cygwin64\bin\test.exe
Found: C:\cygwin64\bin\test.exe
Found: C:\cygwin64\bin\timeout.exe
Found: C:\cygwin64\bin\timeout.exe
Found: C:\windows\system32\timeout.exe
Warning: C:\cygwin64\bin\timeout.exe hides C:\windows\system32\timeout.exe
Found: C:\cygwin64\bin\vi.exe
Found: C:\cygwin64\bin\vi.exe
Found: C:\cygwin64\bin\vim.exe
Found: C:\cygwin64\bin\vim.exe
Found: C:\cygwin64\bin\whoami.exe
Found: C:\cygwin64\bin\whoami.exe
Found: C:\windows\system32\whoami.exe
Warning: C:\cygwin64\bin\whoami.exe hides C:\windows\system32\whoami.exe

  716k 2020/12/28 C:\cygwin64\bin\cygarchive-13.dll - os=4.0 img=0.0 sys=5.2
                  "cygarchive-13.dll" v0.0 ts=2020-12-28 15:11
   39k 2016/09/19 C:\cygwin64\bin\cygargp-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygargp-0.dll" v0.0 ts=2016-09-19 02:13
   65k 2019/05/02 C:\cygwin64\bin\cygassuan-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygassuan-0.dll" v0.0 ts=2019-05-02 12:33
  118k 2018/02/11 C:\cygwin64\bin\cygatk-1.0-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygatk-1.0-0.dll" v0.0 ts=2018-02-11 23:28
   19k 2018/12/20 C:\cygwin64\bin\cygattr-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygattr-1.dll" v0.0 ts=2018-12-20 09:48
  254k 2020/03/31 C:\cygwin64\bin\cygblkid-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygblkid-1.dll" v0.0 ts=2020-03-28 06:22
  132k 2020/10/10 C:\cygwin64\bin\cygbrotlicommon-1.dll - os=4.0 img=1.0 sys=5.2
                  "cygbrotlicommon-1.dll" v0.0 ts=2020-10-10 15:20
   46k 2020/10/10 C:\cygwin64\bin\cygbrotlidec-1.dll - os=4.0 img=1.0 sys=5.2
                  "cygbrotlidec-1.dll" v0.0 ts=2020-10-10 15:21
   66k 2019/07/21 C:\cygwin64\bin\cygbz2-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygbz2-1.dll" v0.0 ts=2019-07-22 00:05
 1114k 2020/12/24 C:\cygwin64\bin\cygcairo-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygcairo-2.dll" v0.0 ts=2020-12-24 22:17
   27k 2020/12/24 C:\cygwin64\bin\cygcairo-gobject-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygcairo-gobject-2.dll" v0.0 ts=2020-12-24 22:17
  127k 2020/12/24 C:\cygwin64\bin\cygcairo-script-interpreter-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygcairo-script-interpreter-2.dll" v0.0 ts=2020-12-24 22:18
   71k 2018/03/16 C:\cygwin64\bin\cygcares-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygcares-2.dll" v0.0 ts=2018-03-16 02:33
   42k 2020/02/17 C:\cygwin64\bin\cygcbor-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygcbor-0.dll" v0.0 ts=2020-02-17 12:04
   13k 2019/01/02 C:\cygwin64\bin\cygcom_err-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygcom_err-2.dll" v0.0 ts=2019-01-02 02:39
  203k 2017/04/25 C:\cygwin64\bin\cygcroco-0.6-3.dll - os=4.0 img=0.0 sys=5.2
                  "cygcroco-0.6-3.dll" v0.0 ts=2017-04-25 17:03
   39k 2017/09/03 C:\cygwin64\bin\cygcrypt-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygcrypt-0.dll" v0.0 ts=2017-09-03 08:18
  194k 2019/04/03 C:\cygwin64\bin\cygcrypt-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygcrypt-2.dll" v0.0 ts=2019-04-03 22:05
 2363k 2019/09/11 C:\cygwin64\bin\cygcrypto-1.0.0.dll - os=4.0 img=0.0 sys=5.2
                  "cygcrypto-1.0.0.dll" v0.0 ts=2019-09-11 18:40
 2451k 2020/04/08 C:\cygwin64\bin\cygcrypto-1.1.dll - os=4.0 img=0.0 sys=5.2
                  "cygcrypto-1.1.dll" v0.0 ts=2020-04-08 12:11
  632k 2020/12/14 C:\cygwin64\bin\cygcurl-4.dll - os=4.0 img=0.0 sys=5.2
                  "cygcurl-4.dll" v0.0 ts=2020-12-12 19:20
   24k 2014/11/12 C:\cygwin64\bin\cygdatrie-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygdatrie-1.dll" v0.0 ts=2014-11-12 07:24
 1552k 2017/09/28 C:\cygwin64\bin\cygdb-5.3.dll - os=4.0 img=0.0 sys=5.2
                  "cygdb-5.3.dll" v0.0 ts=2017-09-28 20:05
  267k 2017/08/10 C:\cygwin64\bin\cygdbus-1-3.dll - os=4.0 img=0.0 sys=5.2
                  "cygdbus-1-3.dll" v0.0 ts=2017-08-10 06:10
  119k 2017/09/28 C:\cygwin64\bin\cygdb_cxx-5.3.dll - os=4.0 img=0.0 sys=5.2
                  "cygdb_cxx-5.3.dll" v0.0 ts=2017-09-28 20:06
  569k 2017/09/28 C:\cygwin64\bin\cygdb_sql-5.3.dll - os=4.0 img=0.0 sys=5.2
                  "cygdb_sql-5.3.dll" v0.0 ts=2017-09-28 20:06
   52k 2020/11/10 C:\cygwin64\bin\cygdeflate-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygdeflate-0.dll" v0.0 ts=2020-11-10 13:20
   16k 2019/09/05 C:\cygwin64\bin\cygdmx-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygdmx-1.dll" v0.0 ts=2019-09-05 22:01
  154k 2013/10/20 C:\cygwin64\bin\cygedit-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygedit-0.dll" v0.0 ts=2013-10-20 21:56
  128k 2019/09/05 C:\cygwin64\bin\cygEGL-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygEGL-1.dll" v0.0 ts=2019-09-05 16:21
  181k 2018/11/24 C:\cygwin64\bin\cygexpat-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygexpat-1.dll" v0.0 ts=2018-09-27 18:30
   30k 2014/10/14 C:\cygwin64\bin\cygfam-0.dll - os=4.0 img=0.0 sys=5.2
elided for size

[-- Attachment #4: XWin.0.log --]
[-- Type: application/octet-stream, Size: 4022 bytes --]

Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 1.20.10.0
OS: CYGWIN_NT-10.0-19044 JHARRIS-DESKTOP 3.1.7-340.x86_64 2020-08-22 17:48 UTC x86_64
OS: Windows 10  [Windows NT 10.0 build 19044] (Win64)
Package: version 1.20.10-1 built 2020-12-21

XWin was started with the following command line:

/usr/bin/XWin :0 -multiwindow -auth 
 /home/John Harris/.serverauth.1095 

ddxProcessArgument - Initializing default screens
winInitializeScreenDefaults - primary monitor w 2560 h 1440
winInitializeScreenDefaults - native DPI x 96 y 96
[223884.875] (II) xorg.conf is not supported
[223884.875] (II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
[223884.875] LoadPreferences: /home/John Harris/.XWinrc not found
[223884.890] LoadPreferences: Loading /etc/X11/system.XWinrc
[223884.890] LoadPreferences: Done parsing the configuration file...
[223884.890] winDetectSupportedEngines - RemoteSession: no
[223885.078] winDetectSupportedEngines - DirectDraw4 installed, allowing ShadowDDNL
[223885.078] winDetectSupportedEngines - Returning, supported engines 00000005
[223885.078] winSetEngine - Multi Window or Rootless => ShadowGDI
[223885.078] winScreenInit - Using Windows display depth of 32 bits per pixel
[223885.109] winAllocateFBShadowGDI - Creating DIB with width: 4000 height: 2560 depth: 32
[223885.109] winFinishScreenInitFB - Masks: 00ff0000 0000ff00 000000ff
[223885.109] winInitVisualsShadowGDI - Masks 00ff0000 0000ff00 000000ff BPRGB 8 d 24 bpp 32
[223885.109] MIT-SHM extension disabled due to lack of kernel support
[223885.109] XFree86-Bigfont extension local-client optimization disabled due to lack of shared memory support in the kernel
[223885.125] glWinSelectGLimplementation: Loaded 'cygnativeGLthunk.dll'
[223885.203] (II) AIGLX: Testing pixelFormatIndex 5
[223885.250] GL_VERSION:     4.6.0 NVIDIA 456.71
[223885.250] GL_VENDOR:      NVIDIA Corporation
[223885.250] GL_RENDERER:    GeForce GTX 1070/PCIe/SSE2
[223885.250] (II) GLX: enabled GLX_SGI_make_current_read
[223885.250] (II) GLX: enabled GLX_SGI_swap_control
[223885.250] (II) GLX: enabled GLX_MESA_swap_control
[223885.250] (II) GLX: enabled GLX_SGIX_pbuffer
[223885.250] (II) GLX: enabled GLX_ARB_multisample
[223885.250] (II) GLX: enabled GLX_SGIS_multisample
[223885.250] (II) GLX: enabled GLX_ARB_fbconfig_float
[223885.250] (II) GLX: enabled GLX_EXT_fbconfig_packed_float
[223885.250] (II) GLX: enabled GLX_ARB_create_context
[223885.250] (II) GLX: enabled GLX_ARB_create_context_profile
[223885.250] (II) GLX: enabled GLX_ARB_create_context_robustness
[223885.250] (II) GLX: enabled GLX_EXT_create_context_es2_profile
[223885.250] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[223885.250] (II) 670 pixel formats reported by wglGetPixelFormatAttribivARB
[223885.281] (II) 634 fbConfigs
[223885.281] (II) ignored pixel formats: 0 not OpenGL, 0 unknown pixel type, 36 unaccelerated
[223885.281] (II) GLX: Initialized Win32 native WGL GL provider for screen 0
[223885.593] winPointerWarpCursor - Discarding first warp: 2000 1280
[223885.593] (--) 16 mouse buttons found
[223885.593] (--) Setting autorepeat to delay=500, rate=31
[223885.593] (--) Windows keyboard layout: "00000409" (00000409) "US", type 4
[223885.593] (--) Found matching XKB configuration "English (USA)"
[223885.593] (--) Model = "pc105" Layout = "us" Variant = "none" Options = "none"
[223885.593] Rules = "base" Model = "pc105" Layout = "us" Variant = "none" Options = "none"
[223885.593] [223885.593] winInitMultiWindowWM - DISPLAY=:0.0
winMultiWindowXMsgProc - DISPLAY=:0.0
[223885.687] winInitMultiWindowWM - xcb_connect () returned and successfully opened the display.
[223885.687] winProcEstablishConnection - winInitClipboard returned.
[223885.687] winClipboardThreadProc - DISPLAY=:0.0
[223885.687] winMultiWindowXMsgProc - xcb_connect() returned and successfully opened the display.
[223885.687] winClipboardProc - xcb_connect () returned and successfully opened the display.
[223885.687] Using Composite redirection

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Fwd: Cygwin-X AWT windows snap back after drag in multi-window mode (w/example): long-standing issue
  2022-03-23 11:38 ` Fwd: " John Harris
@ 2022-03-23 11:57   ` Mark Hansen
  0 siblings, 0 replies; 4+ messages in thread
From: Mark Hansen @ 2022-03-23 11:57 UTC (permalink / raw)
  To: cygwin

On 3/23/2022 4:38 AM, John Harris wrote:
> I'm trying one more posting of this from a month ago hopefully to get
> more eyes on it (got no replies last time). I apologize for the
> repeat, and will stop if no one has any leads on how to fix this. It's
> such a frustrating bug that's easily reproducible and only happens
> with Cygwin-X multi window mode.

I see what I think is the same thing, but only when I'm running a Java Swing (GUI) application
on a Linux host (CentOS) and displaying to my Windows PC running Cygwin X Server.

If I run other X applications on the Linux host (displayed to my X Server) they do
not see this.


> 
> ---------- Forwarded message ---------
> From: John Harris <tamboril@gmail.com>
> Date: Sun, Feb 13, 2022 at 10:14 AM
> Subject: Cygwin-X AWT windows snap back after drag in multi-window
> mode (w/example): long-standing issue
> To: <cygwin@cygwin.com>
> 
> 
> 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.
> 
> 
> 
> 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Cygwin-X AWT windows snap back after drag in multi-window mode (w/example): long-standing issue
  2022-02-13 16:14 Cygwin-X AWT windows snap back after drag in multi-window mode (w/example): long-standing issue John Harris
  2022-03-23 11:38 ` Fwd: " John Harris
@ 2022-08-14 11:11 ` Jon Turney
  1 sibling, 0 replies; 4+ messages in thread
From: Jon Turney @ 2022-08-14 11:11 UTC (permalink / raw)
  To: John Harris, The Cygwin Mailing List

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-08-14 11:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-13 16:14 Cygwin-X AWT windows snap back after drag in multi-window mode (w/example): long-standing issue 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 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).