We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3501

Summary: Window size bug + window title disappears + sometimes the whole window disappears
Product: SDL Reporter: emlai <laine.emil>
Component: videoAssignee: Sam Lantinga <slouken>
Status: NEW --- QA Contact: Sam Lantinga <slouken>
Severity: major    
Priority: P2    
Version: 2.0.5   
Hardware: x86_64   
OS: Mac OS X 10.11   
Attachments: C++ code reproducing the issue

Description emlai 2016-11-26 23:31:47 UTC
Created attachment 2640 [details]
C++ code reproducing the issue

When I create a non-fullscreen 800x600 window, SDL_GetWindowSize return 800x600. So far so good.

When I create a fullscreen (SDL_WINDOW_FULLSCREEN_DESKTOP) 800x600 window and SDL_SetWindowFullscreen it back to windowed mode, SDL_GetWindowSize return 800x578. (The missing 22 pixels is the height of the window title bar.) Additionally, sometimes the window disappears completely at this point, with no way of bringing it back.

This messes up our app because its not able to draw 600 pixels vertically. (The disappearing window is not so nice either.)

I'm using macOS 10.12 (which is by the way missing in the bug report OS dropdown menu), but I remember seeing this behavior in earlier macOS versions too.
Comment 1 emlai 2016-11-27 14:20:07 UTC
Also, the window title disappears when starting the window in fullscreen and then making it windowed.