[Bf-blender-cvs] [333aaca] master: 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

Jens Verwiebe noreply at git.blender.org
Sat Jul 26 18:51:59 CEST 2014


Commit: 333aaca29450b0b44f1db47791cc35faa7e766c2
Author: Jens Verwiebe
Date:   Sat Jul 26 18:51:39 2014 +0200
Branches: master
https://developer.blender.org/rB333aaca29450b0b44f1db47791cc35faa7e766c2

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

===================================================================

M	intern/ghost/intern/GHOST_WindowCocoa.mm

===================================================================

diff --git a/intern/ghost/intern/GHOST_WindowCocoa.mm b/intern/ghost/intern/GHOST_WindowCocoa.mm
index f9b8899..41be280 100644
--- a/intern/ghost/intern/GHOST_WindowCocoa.mm
+++ b/intern/ghost/intern/GHOST_WindowCocoa.mm
@@ -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];
 }




More information about the Bf-blender-cvs mailing list