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 - MAC_FULLSCREEN_SPACES causes problems with window positioning
Summary: MAC_FULLSCREEN_SPACES causes problems with window positioning
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 2.0.3
Hardware: x86_64 Mac OS X 10.8
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords: target-2.0.4
Depends on:
Blocks:
 
Reported: 2015-07-21 20:57 UTC by Drew Bliss
Modified: 2015-10-06 04:52 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.