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 2227

Summary: Reported window size wrong when leaving fullscreen with active window size limits
Product: SDL Reporter: norfanin
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: icculus
Version: HG 2.0   
Hardware: All   
OS: Linux   
Attachments: Testcase for window size issue when leaving fullscreen.

Description norfanin 2013-11-11 23:54:41 UTC
Created attachment 1420 [details]
Testcase for window size issue when leaving fullscreen.

On Linux, when leaving desktop-fullscreen and the window size limits are enabled, the window size reported by the events and SDL_GetWindowSize is still the fullscreen window size.

Attached is a small testcase. Press 2 to toggle desktop-fullscreen. Press space to print the size reported by SDL_GetWindowSize. Escape quits.
Comment 1 Ryan C. Gordon 2018-08-07 15:54:45 UTC
This was fixed at some point, as it works here, five years later.  :)

--ryan.