diff options
author | julianeisel <julian_eisel@web.de> | 2015-01-28 04:32:52 +0300 |
---|---|---|
committer | julianeisel <julian_eisel@web.de> | 2015-01-28 04:52:49 +0300 |
commit | 3e590923485dd0206545654d58202fb073a4469d (patch) | |
tree | 1b0be1dbf7a9be7146fc2a8a0d6fa5315a4a6e2c /source/blender/editors/screen/area.c | |
parent | 01cebb6e91dce40772a1f9444a09eef7ba97ea7b (diff) |
Stacked fullscreen area support (proper implemenation)
Adds support for stacked fullscreens. This basically means, if a user opens a
temporary fullscreen mode, such as the File Browser or the Image Editor render
view, from a different fullscreen, the "Back to Previous" function or the other
ways to escape those temporary fullscreens don't return to the split screen
layout but to the previous fullscreen he has been in.
I already committed something similar (f7e844570fea862) but that was only
supposed as a fix, it didn't work for the "Back to Previous" operator and the
implementation wasn't really reusable. This one looks a bit nicer + makes some
older hacks unnecessary :)
Diffstat (limited to 'source/blender/editors/screen/area.c')
-rw-r--r-- | source/blender/editors/screen/area.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c index 698d4a4df2f..83b22bb1a8a 100644 --- a/source/blender/editors/screen/area.c +++ b/source/blender/editors/screen/area.c @@ -1645,6 +1645,8 @@ void ED_area_prevspace(bContext *C, ScrArea *sa) /* no change */ return; } + sa->flag &= ~AREA_FLAG_STACKED_FULLSCREEN; + ED_area_tag_redraw(sa); /* send space change notifier */ |