Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/screen/screen_edit.c
| Show First 20 Lines • Show All 1,433 Lines • ▼ Show 20 Lines | if (win->screen) { | ||||
| else { | else { | ||||
| /* notifier invokes freeing the buttons... causing a bit too much redraws */ | /* notifier invokes freeing the buttons... causing a bit too much redraws */ | ||||
| if (oldswin != scr->subwinactive) { | if (oldswin != scr->subwinactive) { | ||||
| region_cursor_set(win, scr->subwinactive, true); | region_cursor_set(win, scr->subwinactive, true); | ||||
| /* this used to be a notifier, but needs to be done immediate | /* this used to be a notifier, but needs to be done immediate | ||||
| * because it can undo setting the right button as active due | * because it can undo setting the right button as active due | ||||
| * to delayed notifier handling */ | * to delayed notifier handling */ | ||||
| uiFreeActiveButtons(C, win->screen); | UI_screen_free_active_but(C, win->screen); | ||||
| } | } | ||||
| else | else | ||||
| region_cursor_set(win, scr->subwinactive, false); | region_cursor_set(win, scr->subwinactive, false); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| int ED_screen_area_active(const bContext *C) | int ED_screen_area_active(const bContext *C) | ||||
| ▲ Show 20 Lines • Show All 357 Lines • ▼ Show 20 Lines | ScrArea *ED_screen_state_toggle(bContext *C, wmWindow *win, ScrArea *sa, const short state) | ||||
| bScreen *sc, *oldscreen; | bScreen *sc, *oldscreen; | ||||
| ARegion *ar; | ARegion *ar; | ||||
| if (sa) { | if (sa) { | ||||
| /* ensure we don't have a button active anymore, can crash when | /* ensure we don't have a button active anymore, can crash when | ||||
| * switching screens with tooltip open because region and tooltip | * switching screens with tooltip open because region and tooltip | ||||
| * are no longer in the same screen */ | * are no longer in the same screen */ | ||||
| for (ar = sa->regionbase.first; ar; ar = ar->next) | for (ar = sa->regionbase.first; ar; ar = ar->next) | ||||
| uiFreeBlocks(C, &ar->uiblocks); | UI_blocklist_free(C, &ar->uiblocks); | ||||
| /* prevent hanging header prints */ | /* prevent hanging header prints */ | ||||
| ED_area_headerprint(sa, NULL); | ED_area_headerprint(sa, NULL); | ||||
| } | } | ||||
| if (sa && sa->full) { | if (sa && sa->full) { | ||||
| /* restoring back to SCREENNORMAL */ | /* restoring back to SCREENNORMAL */ | ||||
| ScrArea *old; | ScrArea *old; | ||||
| ▲ Show 20 Lines • Show All 280 Lines • Show Last 20 Lines | |||||