HumbleUI / JWM

Cross-platform window management and OS integration library for Java
Apache License 2.0
547 stars 44 forks source link

X11: Maximize and then restore does not fire eventwindowmove, confusing getWindowRect #198

Closed tonsky closed 2 years ago

tonsky commented 2 years ago

Steps to reproduce:

  1. Maximize window
  2. Restore

Screenshot from 2022-02-07 17-30-51

dzaima commented 2 years ago

Also just resizing the window without moving seems to break it. Seems ConfigureNotify isn't a reliable way to get window location.

dzaima commented 2 years ago

Seems that within ConfigureNotify the resizing hasn't been completed, so even retrieving the proper position with getWindowRect will return the position before the resize.. Not sure what to do about that.