Removed silly Global windowstate variable.
authorTon Roosendaal <ton@blender.org>
Sun, 30 Dec 2007 17:29:13 +0000 (17:29 +0000)
committerTon Roosendaal <ton@blender.org>
Sun, 30 Dec 2007 17:29:13 +0000 (17:29 +0000)
Result: windows open default with decoration (or as your default WM
defines).

Todo: platform maintainers re-implement a cogent way for giving
commandline options for defaults, and test how this can be stored even

source/blender/windowmanager/intern/wm_window.c

index 9ddf6fc078b3dc80afcb7383c38499763e8b4ebd..0e135f9942fa458df05339bf32ebb62849b67869 100644 (file)
@@ -178,11 +178,8 @@ static void wm_window_open(wmWindowManager *wm, char *title, wmWindow *win)
        wm_get_screensize(&scr_w, &scr_h);
        posy= (scr_h - win->posy - win->sizey);
        
-       if (win->windowstate == G_WINDOWSTATE_FULLSCREEN)
-               inital_state = GHOST_kWindowStateFullScreen;
-       else if (win->windowstate == G_WINDOWSTATE_BORDER)
-               inital_state = GHOST_kWindowStateMaximized;
-       else
+//             inital_state = GHOST_kWindowStateFullScreen;
+//             inital_state = GHOST_kWindowStateMaximized;
                inital_state = GHOST_kWindowStateNormal;
 
 #ifdef __APPLE__
@@ -245,7 +242,7 @@ void wm_window_add_ghostwindows(wmWindowManager *wm)
                                win->posy= prefstay;
                                win->sizex= prefsizx;
                                win->sizey= prefsizy;
-                               win->windowstate= G.windowstate;
+                               win->windowstate= 0;
                        }
                        wm_window_open(wm, "Blender", win);
                }