Removed silly Global windowstate variable.

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
This commit is contained in:
2007-12-30 17:29:13 +00:00
parent a80b8352c6
commit f25ce8d0ff

View 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);
}