Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/screen/workspace_layout_edit.c
| Show First 20 Lines • Show All 162 Lines • ▼ Show 20 Lines | |||||
| static bool workspace_change_find_new_layout_cb(const WorkSpaceLayout *layout, void *UNUSED(arg)) | static bool workspace_change_find_new_layout_cb(const WorkSpaceLayout *layout, void *UNUSED(arg)) | ||||
| { | { | ||||
| /* return false to stop the iterator if we've found a layout that can be activated */ | /* return false to stop the iterator if we've found a layout that can be activated */ | ||||
| return workspace_layout_set_poll(layout) ? false : true; | return workspace_layout_set_poll(layout) ? false : true; | ||||
| } | } | ||||
| static bScreen *screen_fullscreen_find_associated_normal_screen(const Main *bmain, bScreen *screen) | static bScreen *screen_fullscreen_find_associated_normal_screen(const Main *bmain, bScreen *screen) | ||||
| { | { | ||||
| for (bScreen *screen_iter = bmain->screens.first; screen_iter; | LISTBASE_FOREACH (bScreen *, screen_iter, &bmain->screens) { | ||||
| screen_iter = screen_iter->id.next) { | |||||
| if ((screen_iter != screen) && ELEM(screen_iter->state, SCREENMAXIMIZED, SCREENFULL)) { | if ((screen_iter != screen) && ELEM(screen_iter->state, SCREENMAXIMIZED, SCREENFULL)) { | ||||
| ScrArea *area = screen_iter->areabase.first; | ScrArea *area = screen_iter->areabase.first; | ||||
| if (area && area->full == screen) { | if (area && area->full == screen) { | ||||
| return screen_iter; | return screen_iter; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 82 Lines • Show Last 20 Lines | |||||