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 3887

Summary: Switching between desktop fullscreen and windowed mode causes window shrinkage.
Product: SDL Reporter: Joshua Moss <bandock666>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: minor    
Priority: P2 CC: blckcat, ewasylishen
Version: 2.0.6   
Hardware: x86   
OS: Windows 10   

Description Joshua Moss 2017-10-15 23:01:48 UTC
This was mentioned by another person in the forum on this link:  https://discourse.libsdl.org/t/sdl-fullscreen-toggle-shrinks-window/23160/2

This is a relatively new bug that was introduced since 2.0.6 as it did not occur in 2.0.5 and below.  Whenever you switch from desktop fullscreen (borderless) to windowed; window shrinks by a certain amount.  Keeps shrinking each time you do it.  I have a feeling it has something to do with some new hints that were added for logical size rendering.

Current workaround is to keep the previous window size intact (by storing values in variables) before going into fullscreen.
Comment 1 Sam Lantinga 2017-10-16 04:09:38 UTC
This should be fixed in the SDL 2.0.7 RC build:
http://www.libsdl.org/tmp/download-2.0.php

Can you confirm?
Comment 2 Joshua Moss 2017-10-16 04:46:09 UTC
(In reply to Sam Lantinga from comment #1)
> This should be fixed in the SDL 2.0.7 RC build:
> http://www.libsdl.org/tmp/download-2.0.php
> 
> Can you confirm?

Yep, it's completely fixed now.  No more need to workaround. ;)
Comment 3 Sam Lantinga 2017-10-16 05:02:00 UTC
Great, thanks for the update.
Comment 4 Eric Wasylishen 2017-10-17 03:32:39 UTC
Just for reference, this was fixed by http://hg.libsdl.org/SDL/rev/4006cd3d0a73
Comment 5 Egor 2017-10-20 18:56:31 UTC
*** Bug 3896 has been marked as a duplicate of this bug. ***