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 - Window size bug + window title disappears + sometimes the whole window disappears
Summary: Window size bug + window title disappears + sometimes the whole window disapp...
Status: NEW
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 2.0.5
Hardware: x86_64 Mac OS X 10.11
: P2 major
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-26 23:31 UTC by emlai
Modified: 2016-11-27 14:21 UTC (History)
0 users

See Also:


Attachments
C++ code reproducing the issue (971 bytes, text/x-csrc)
2016-11-26 23:31 UTC, emlai
Details

Note You need to log in before you can comment on or make changes to this bug.
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.