[88a2263] master: OSX: always create a window in normal state, not fullscreen or iconized …

Jens Verwiebe noreply at git.blender.org
Mon Apr 21 19:43:28 CEST 2014


Commit: 88a22632a38b5acab001d27c834a2557f8db638b
Author: Jens Verwiebe
Date:   Mon Apr 21 19:43:10 2014 +0200
https://developer.blender.org/rB88a22632a38b5acab001d27c834a2557f8db638b

OSX: always create a window in normal state, not fullscreen or iconized …

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

M	source/blender/windowmanager/intern/wm_window.c

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

diff --git a/source/blender/windowmanager/intern/wm_window.c b/source/blender/windowmanager/intern/wm_window.c
index 1bd9f15..b589009 100644
--- a/source/blender/windowmanager/intern/wm_window.c
+++ b/source/blender/windowmanager/intern/wm_window.c
@@ -375,7 +375,8 @@ static void wm_window_add_ghostwindow(const char *title, wmWindow *win)
 		
 #ifdef __APPLE__
 		/* set the state here, else OSX would not recognize changed screen resolution */
-		GHOST_SetWindowState(ghostwin, (GHOST_TWindowState)win->windowstate);
+		/* we agreed to not set any fullscreen or iconized state on startup */
+		GHOST_SetWindowState(ghostwin, GHOST_kWindowStateNormal);
 #endif
 		/* store actual window size in blender window */
 		bounds = GHOST_GetClientBounds(win->ghostwin);




More information about the Bf-blender-cvs mailing list