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 3066

Summary: MAC_FULLSCREEN_SPACES causes problems with window positioning
Product: SDL Reporter: Drew Bliss <drewb>
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: amaranth72
Version: 2.0.3Keywords: target-2.0.4
Hardware: x86_64   
OS: Mac OS X 10.8   

Description Drew Bliss 2015-07-21 20:57:13 UTC
Dota 2 Reborn was defaulting to fullscreen spaces on Mac.  However we ran into a couple of problems where window positioning was off so we had to turn them off.

1.      When going from fullscreen back to windowed mode, the window would be on an empty space with a black background instead of on the space the game was originally opened on.
2.      When going from fullscreen back to windowed mode, the window would occasionally be off the screen.  This was observed on a MBPr going from 2880x1800 to 1440x900 borderless window.

These came from user bug reports:
https://github.com/ValveSoftware/Dota-2-Reborn/issues/127
https://github.com/ValveSoftware/Dota-2-Reborn/issues/176

We have turned off spaces in Reborn for now but Ryan mentioned trying to see if there was something in SDL that needed to be fixed.
Comment 1 Ryan C. Gordon 2015-08-14 05:22:50 UTC
(In reply to Drew Bliss from comment #0)
> 2.      When going from fullscreen back to windowed mode, the window would
> occasionally be off the screen.  This was observed on a MBPr going from
> 2880x1800 to 1440x900 borderless window.

This part might be fixed by https://hg.libsdl.org/SDL/rev/aa1321ce8425

--ryan.
Comment 2 Alex Szpakowski 2015-09-10 03:45:38 UTC
That one reminds me of this: https://hg.libsdl.org/SDL/rev/e88af17231bd

If the recent fixes to SDL_SetWindowSize haven't fixed this, I wonder if it's caused by something similar to the problem fixed by the above commit?
Comment 3 Ryan C. Gordon 2015-10-06 04:52:55 UTC
The other bug ( https://github.com/ValveSoftware/Dota-2-Reborn/issues/176 ) should be fixed now by https://hg.libsdl.org/SDL/rev/77f017f7f16d ...

--ryan.