forked from bartvdbraak/blender
OSX/GHOST: Using lion_fullscreen suffers from an uncovered problem when called from operator, disabled for now so ALT-F11
uses old behavior again. OSX menu and CTL-CMD-F still work as lion fullscreen as well as right-upper corner fs window-icon - We must investigate here why double promotion happens from op calls ( dispatchEvents on redraw cause duplicated calls here ) - The actual op calls cause fs to be in a wrong state, so also mousehandles fail and CTX_wm_window(C) is not valid. - similar problem is with quit op, which does not close the app right ( totblocks ) - i would prefer to try getting direct os function call here rather
This commit is contained in:
parent
cd59daca53
commit
333aaca294
@ -728,14 +728,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
|
||||
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') {
|
||||
m_lionStyleFullScreen = true;
|
||||
}
|
||||
//Using lion_fullscreen suffers from an uncovered problem when called from operator, disabled for now
|
||||
// //Starting with 10.9 (darwin 13.x.x), we always use Lion fullscreen, since it
|
||||
// //now has proper multi-monitor support for fullscreen
|
||||
// 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') {
|
||||
// m_lionStyleFullScreen = true;
|
||||
// }
|
||||
|
||||
[pool drain];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user