News for hackers. Stuff that matters.
Re:How X Window Managers Work, and How to Write One (2014) by dfox on Wednesday November 03, 2021 @08:27AM (#29093665)
Which is highly ironic as the probably only WM written in Java (Project Looking Glass) is not reparenting.

IIRC the issue with AWT and non-reparenting WMs is mostly limited to popup (ie. override-redirect) windows that are positioned in relation to some kind of owner window (which means menus, tooltip popups...). AWT simply expectes that parent window of its window to be the frame window of reparenting WM and calulates the position in respect to that, if there isn't the frame window the position of the popup inside root window will be calculated as if the root window was the frame, which can result in anything from the position being slightly wrong (eg. shifted down by the height of awesome's "menu" bar) to the window being completely off-screen.

Re:How X Window Managers Work, and How to Write One (2014) by IiydAbITMvJkqKf on Wednesday November 03, 2021 @09:38AM (#29094360)
AWT has hardcoded special treatment for WMs which call themselves "LG3D". Which is why [1] exists. Update: found the JDK code [2]

[1] https://tools.suckless.org/x/wmname/

[2] https://github.com/openjdk/jdk/blob/9759fcb17b62d76d75b89348...