diff options
author | Jens Verwiebe <info@jensverwiebe.de> | 2014-10-14 14:48:06 +0400 |
---|---|---|
committer | Jens Verwiebe <info@jensverwiebe.de> | 2014-10-14 14:48:16 +0400 |
commit | 424c050a6fc16ad077286a080d9d1134a39f7f30 (patch) | |
tree | e78fa4d31d08467dc828a9f581f79110203d59b6 /intern | |
parent | f23cf22125edb805399b351a8ecf7408f2f23b22 (diff) |
OSX: only use lionstylefullscreen when seperate spaces are used, todo: use respondsToSelector to simplify the whole detection
Diffstat (limited to 'intern')
-rw-r--r-- | intern/ghost/intern/GHOST_WindowCocoa.mm | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/intern/ghost/intern/GHOST_WindowCocoa.mm b/intern/ghost/intern/GHOST_WindowCocoa.mm index 8805dc93179..af2ff58b2e0 100644 --- a/intern/ghost/intern/GHOST_WindowCocoa.mm +++ b/intern/ghost/intern/GHOST_WindowCocoa.mm @@ -634,12 +634,15 @@ GHOST_WindowCocoa::GHOST_WindowCocoa( if (state == GHOST_kWindowStateFullScreen) setState(GHOST_kWindowStateFullScreen); - //Starting with 10.9 (darwin 13.x.x), we always use Lion fullscreen, since it - //now has proper multi-monitor support for fullscreen + // Starting with 10.9 (darwin 13.x.x), we always use Lion fullscreen, since it + // now has better multi-monitor support for fullscreen + // if the screens are spawned, additional screens get useless, + // so we only use lionStyleFullScreen when screens have separate spaces + char darwin_ver[10]; size_t len = sizeof(darwin_ver); sysctlbyname("kern.osrelease", &darwin_ver, &len, NULL, 0); - if(darwin_ver[0] == '1' && darwin_ver[1] >= '3') { + if(darwin_ver[0] == '1' && darwin_ver[1] >= '3' && [NSScreen screensHaveSeparateSpaces]) { m_lionStyleFullScreen = true; } |