| Summary: | Window size bug + window title disappears + sometimes the whole window disappears | ||
|---|---|---|---|
| Product: | SDL | Reporter: | emlai <laine.emil> |
| Component: | video | Assignee: | 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 | ||
Also, the window title disappears when starting the window in fullscreen and then making it windowed. |
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.