HumbleUI / JWM

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

X11: Window::getContentRect spills outside of getWindowRect #144

Closed tonsky closed 2 years ago

tonsky commented 3 years ago

Screenshot from 2021-08-28 16-54-47 (1)

dzaima commented 2 years ago

at least on Linux Mint Cinnamon, the top-left corner can even go negative - XGetWindowAttributes doesn't give the actual decoration size. _NET_FRAME_EXTENTS seems to give proper ones though, will look into it