diff options
author | Jens Verwiebe <info@jensverwiebe.de> | 2014-03-13 20:08:15 +0400 |
---|---|---|
committer | Jens Verwiebe <info@jensverwiebe.de> | 2014-03-13 20:08:28 +0400 |
commit | b7712a761ae66d5a0b54a31e6bf2f8f19c37b0da (patch) | |
tree | f3ae2cff36aba4076d82bfe50643f33ae54aaf06 /source/blender/windowmanager/intern/wm_window.c | |
parent | a349a3a94ecf6413f2ef62c872fdefda010df597 (diff) |
OSX/GHOST: fix T39153, pls check on win minimized window load
Diffstat (limited to 'source/blender/windowmanager/intern/wm_window.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_window.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/windowmanager/intern/wm_window.c b/source/blender/windowmanager/intern/wm_window.c index 6a2ef471be0..1268e4341bc 100644 --- a/source/blender/windowmanager/intern/wm_window.c +++ b/source/blender/windowmanager/intern/wm_window.c @@ -372,6 +372,9 @@ static void wm_window_add_ghostwindow(const char *title, wmWindow *win) if (win->eventstate == NULL) win->eventstate = MEM_callocN(sizeof(wmEvent), "window event state"); + + /* set the state */ + GHOST_SetWindowState(ghostwin, (GHOST_TWindowState)win->windowstate); /* store actual window size in blender window */ bounds = GHOST_GetClientBounds(win->ghostwin); @@ -379,9 +382,6 @@ static void wm_window_add_ghostwindow(const char *title, wmWindow *win) win->sizey = GHOST_GetHeightRectangle(bounds); GHOST_DisposeRectangle(bounds); - /* set the state */ - GHOST_SetWindowState(ghostwin, (GHOST_TWindowState)win->windowstate); - /* until screens get drawn, make it nice gray */ glClearColor(0.55, 0.55, 0.55, 0.0); /* Crash on OSS ATI: bugs.launchpad.net/ubuntu/+source/mesa/+bug/656100 */ |