Tweak to make temp 'fullscreen' screens be alphabetically similar to the previous ones that spawned them, so you can switch screens (ctrl left and right arrow) more smoothly ( [#20301] Screens and Fullscreen still doesn't work )
This commit is contained in:
@@ -1483,6 +1483,7 @@ ScrArea *ed_screen_fullarea(bContext *C, wmWindow *win, ScrArea *sa)
|
||||
}
|
||||
else {
|
||||
ScrArea *newa;
|
||||
char newname[20];
|
||||
|
||||
oldscreen= win->screen;
|
||||
|
||||
@@ -1491,8 +1492,8 @@ ScrArea *ed_screen_fullarea(bContext *C, wmWindow *win, ScrArea *sa)
|
||||
return NULL;
|
||||
|
||||
oldscreen->full = SCREENFULL;
|
||||
|
||||
sc= ED_screen_add(win, oldscreen->scene, "temp");
|
||||
BLI_snprintf(newname, sizeof(newname), "%s-%s", oldscreen->id.name+2, "temp");
|
||||
sc= ED_screen_add(win, oldscreen->scene, newname);
|
||||
sc->full = SCREENFULL; // XXX
|
||||
|
||||
/* timer */
|
||||
|
||||
Reference in New Issue
Block a user