I’m programming with SDL in Linux. I would have thought, that if i set SDL_WINDOWPOS_UNDEFINED for x and y in SDL_CreateWindow(), the window position is chosen by the window manager (XFCE4 here). But windows always open in the center of the screen. Is this correct – and how can I get the desired behaviour?
This glitching also occurs in Win32. In SDL2, both SDL_WINDOWPOS_UNDEFINED and SDL_WINDOWPOS_CENTERED make it centered window at the cross-platform level:
However, in Win32, passing CW_USEDEFAULT to the x and y parameters of CreateWindow makes it create a window at Microsoft’s position which is much more natural than centered window. Is this going to be bugfixed in SDL3?