Fix T56472: maximizing editors does not preserve top/status bar hiding.

This commit is contained in:
Brecht Van Lommel 2018-08-21 16:29:50 +02:00
parent 5200f6a2d7
commit f1f3360696
Notes: blender-bot 2023-02-14 08:42:54 +01:00
Referenced by issue #56472, it is not possible to hide the top bar and the status bar in "full space window mode"
1 changed files with 2 additions and 0 deletions

View File

@ -1156,6 +1156,7 @@ ScrArea *ED_screen_state_toggle(bContext *C, wmWindow *win, ScrArea *sa, const s
oldscreen = WM_window_get_active_screen(win); /* the one disappearing */
sc->state = SCREENNORMAL;
sc->flag = oldscreen->flag;
/* find old area to restore from */
ScrArea *fullsa = NULL;
@ -1223,6 +1224,7 @@ ScrArea *ED_screen_state_toggle(bContext *C, wmWindow *win, ScrArea *sa, const s
sc->state = state;
sc->redraws_flag = oldscreen->redraws_flag;
sc->temp = oldscreen->temp;
sc->flag = oldscreen->flag;
/* timer */
sc->animtimer = oldscreen->animtimer;