Closed DevAlone closed 1 year ago
Which platform/OS?
Which platform/OS?
Well, I'm running it in an LXC container. The host is KDE neon User - 5.24 aka Ubuntu 20.04 with both KDE and Gnome on Xorg. The container is Ubuntu 22.04, but it shouldn't matter at all.
Alright. I will have look
So I tried this locally on my Linux machine. Running Ubuntu 21.04 and i3 (I set the Window to floating) and the code above works just as expected for me so I'm not sure what is going on.
get_window position was a very crude hack, that was not very well tested. Especially on Linux.
Most systems disagree between setting the window position (usually without window decorations), and getting the window position (usually with some window decorations).
This will more details on which desktop, window manager, etc is used. It might not ever work 100% on all combinations.
If you have a detailed repro I might give it a shot again.
Closing until there is some more info about the issue. Please re-open if needed.
Expected behavior:
The window jumps 10 pixels to the right
Current behaviour
The window jumped 28 pixels to the right and 110 pixels to the bottom
Wut?