I have a app with several windows, and before exit, i loop them, and using SDL_GetWindowPosition() to get its x y coordinates, and save them to a config file (to keep user’s preferred layout).

When the app loads, it use SDL_SetWindowPosition() to put them where the user’s left them.

But (even without moving the windows) i am getting a -37 in Y coordinates on exit, slowing move all them to the bottom of screen each time the user quit and re-execute…

Seens to me that this is the title bar size. Currently, i’m subtracting -37 from Y each time the user quit, but i guess this value will change with different screens resolutions or OSes.

Anybody heard of this happening? I’m using Ubuntu 20.04 with SDL 2.0.10