Fix yet another fullscreen glitch
authorJulian Eisel <eiseljulian@gmail.com>
Mon, 8 Jun 2015 15:20:21 +0000 (17:20 +0200)
committerJulian Eisel <eiseljulian@gmail.com>
Mon, 8 Jun 2015 15:20:21 +0000 (17:20 +0200)
Steps to reproduce were: Toggle fullscreen->F12->F3->ESC 2x->3D View
changed to Image Editor and didn't change back.

Actually it doesn't work 100% as wanted since it exits the fullscreen
when pressing ESC to exit Image Editor but it's hard to support all
cases with such a weird spaghetti code.

source/blender/editors/render/render_view.c

index fc1338c5795c54d4c0a9af45157e3227952fed1d..f6690296890817581f1c3f1d826242b87b22a76d 100644 (file)
@@ -197,7 +197,7 @@ ScrArea *render_view_open(bContext *C, int mx, int my)
 
                                /* we already had a fullscreen here -> mark new space as a stacked fullscreen */
                                if (sa->full) {
-                                       sa->flag |= AREA_FLAG_STACKED_FULLSCREEN;
+                                       sa->flag |= (AREA_FLAG_STACKED_FULLSCREEN | AREA_FLAG_TEMP_TYPE);
                                }
                        }
                        else {