WM: don't set the area when toggling full-screen

The stated reason for this no longer applies.
This commit is contained in:
2021-03-23 11:33:21 +11:00
parent 4820f16b7f
commit b787581c9c

View File

@@ -1413,8 +1413,8 @@ ScrArea *ED_screen_state_toggle(bContext *C, wmWindow *win, ScrArea *area, const
screen = screen_state_to_nonnormal(C, win, toggle_area, state);
}
/* XXX bad code: setscreen() ends with first area active. fullscreen render assumes this too */
CTX_wm_area_set(C, screen->areabase.first);
BLI_assert(CTX_wm_screen(C) == screen);
BLI_assert(CTX_wm_area(C) == NULL); /* May have been freed. */
return screen->areabase.first;
}