From f25ce8d0fff3a05c7eeb0d75fe37601f42072edc Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Sun, 30 Dec 2007 17:29:13 +0000 Subject: 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 --- source/blender/windowmanager/intern/wm_window.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'source') diff --git a/source/blender/windowmanager/intern/wm_window.c b/source/blender/windowmanager/intern/wm_window.c index 9ddf6fc078b..0e135f9942f 100644 --- a/source/blender/windowmanager/intern/wm_window.c +++ b/source/blender/windowmanager/intern/wm_window.c @@ -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); } -- cgit v1.2.3