Yes, thanks Zelijko. I was coming to the same conclusion, that it 'should' work but does not. We are being experimented on. And it applies to positioning a new window too.
Forcing an app to use an X11 session instead of Wayland solves all of these problems and stops heaps of warning messages on the command line. But, as far as I can see, no way, programmatically, to force that X11 session, it has to be an env var. Pity.
XDG_SESSION_TYPE=x11 ./myapp <enter>
Would it be possible to call this somewhere in your QT initialization code ?
qputenv("XDG_SESSION_TYPE", "x11");
As I understand it, actually using Wayland is only beneficial if you want some unproven inter-process security. Let other people be experimented on until it all works....
EDIT: I note suggestions that "x11" won't work with Qt6 but "xcb" does. And xcb is a more modern approach, written to prove that the x11 architecture is viable even if the code is not. But my tests here indicate that neither [xcb, x11] make Qt6 work. And, I guess, Qt6 should be our long term focus ?
Davo