From c271a9fa8bc41eb6b1380aaa84c27c3da5cfb74e Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Mon, 2 Mar 2015 22:35:57 +0100 Subject: Fix T43864: Saving from top area in fullscreen changes wrong area into File Browser We now always use the actual fullscreen area. --- source/blender/windowmanager/intern/wm_event_system.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'source/blender/windowmanager/intern/wm_event_system.c') diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c index 8ddc5d77a42..e3d9ba40c6e 100644 --- a/source/blender/windowmanager/intern/wm_event_system.c +++ b/source/blender/windowmanager/intern/wm_event_system.c @@ -1678,9 +1678,14 @@ static int wm_handler_fileselect_do(bContext *C, ListBase *handlers, wmEventHand sa = handler->op_area; } - /* we already had a fullscreen here -> mark new space as a stacked fullscreen */ if (sa->full) { + /* ensure the first area becomes the file browser, because the second one is the small + * top (info-)area which might be too small (in fullscreens we have max two areas) */ + if (sa->prev) { + sa = sa->prev; + } ED_area_newspace(C, sa, SPACE_FILE); /* 'sa' is modified in-place */ + /* we already had a fullscreen here -> mark new space as a stacked fullscreen */ sa->flag |= AREA_FLAG_STACKED_FULLSCREEN; } else { -- cgit v1.2.3