Revert previous merge commit, we need compilable blender in the studio
[blender.git] / source / blender / windowmanager / intern / wm_window.c
index 363d04b8433c81b90bb92f201d5892a5a2074499..ad1b80ed6510a64c65c0063447937a4b3ba431a1 100644 (file)
@@ -341,6 +341,12 @@ static void wm_window_add_ghostwindow(const char *title, wmWindow *win)
        wm_get_screensize(&scr_w, &scr_h);
        posy = (scr_h - win->posy - win->sizey);
        
+#if defined(__APPLE__) && !defined(GHOST_COCOA)
+       {
+               extern int macPrefState; /* creator.c */
+               initial_state += macPrefState;
+       }
+#endif
        /* Disable AA for now, as GL_SELECT (used for border, lasso, ... select)
         * doesn't work well when AA is initialized, even if not used. */
        ghostwin = GHOST_CreateWindow(g_system, title,