-
Notifications
You must be signed in to change notification settings - Fork 44
Description
When I call SDL_GetWindowBordersSize() after RBDoom3BFG initializes, I get expected values returned for the XFCE window manager on Manjaro Linux: topBorder=28, leftBorder=2, bottomBorder=2, rightBorder=2.
However, if I fullscreen the game window (either programatically or via the window manager) and then return to windowed mode, the same call then returns incorrect values: topBorder=28, leftBorder=0, bottomBorder=0, rightBorder=0. This is not a timing issue as the same call will return the same incorrect values long after the window has returned to windowed mode (e.g. just before fullscreening again).
However, if I call SDL_SetWindowPosition( window, windowPosX, windowPosY ) before returning to windowed mode via SDL_SetWindowFullscreen( window, SDL_FALSE ) and SDL_RestoreWindow( window ), then SDL_GetWindowBordersSize() does return the correct values of topBorder=28, leftBorder=2, bottomBorder=2, rightBorder=2.
This is different than native SDL2 which did not require setting the window position before returning to windowed mode. Is this expected behaviour for SDL_GetWindowBordersSize()? Or is it a bug?