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 3809

Summary: Restore after maximize leads to wrong size
Product: SDL Reporter: Andreas Falkenhahn <andreas>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: blocker    
Priority: P2 Keywords: target-2.0.6
Version: HG 2.1   
Hardware: x86_64   
OS: macOS 10.12   

Description Andreas Falkenhahn 2017-09-09 16:13:45 UTC
My app opens a 640x480 window. When I click on the window's maximize button, the window correctly fills the entire screen and loses its borders. But clicking on the restore button now doesn't restore the window to its original 640x480 size. Instead, the window size is identical to the screen size now. The only difference to the previous state is that the window now has borders again but it isn't restored to 640x480.

The problem only appears with the latest SDL2 master on OSX 10.12.6. With SDL 2.0.5 it works correctly.
Comment 1 Sam Lantinga 2017-09-09 18:00:42 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL/rev/6f723ec1d371