diff options
author | Julian Eisel <julian_eisel@web.de> | 2015-03-03 00:35:57 +0300 |
---|---|---|
committer | Julian Eisel <julian_eisel@web.de> | 2015-03-03 00:38:59 +0300 |
commit | c271a9fa8bc41eb6b1380aaa84c27c3da5cfb74e (patch) | |
tree | 19825aca63736907d11a6f7e988ec02a07fc07f3 /source | |
parent | d2b6c6fd9b042e7a01021dbed6098002f635a7fe (diff) |
Fix T43864: Saving from top area in fullscreen changes wrong area into File Browser
We now always use the actual fullscreen area.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/windowmanager/intern/wm_event_system.c | 7 |
1 files changed, 6 insertions, 1 deletions
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 { |