Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm.c
| Show First 20 Lines • Show All 481 Lines • ▼ Show 20 Lines | void wm_close_and_free(bContext *C, wmWindowManager *wm) | ||||
| wmOperator *op; | wmOperator *op; | ||||
| wmKeyConfig *keyconf; | wmKeyConfig *keyconf; | ||||
| if (wm->autosavetimer) | if (wm->autosavetimer) | ||||
| wm_autosave_timer_ended(wm); | wm_autosave_timer_ended(wm); | ||||
| while ((win = BLI_pophead(&wm->windows))) { | while ((win = BLI_pophead(&wm->windows))) { | ||||
| WM_window_set_active_workspace(win, NULL); /* prevent draw clear to use screen */ | WM_window_set_active_workspace(win, NULL); /* prevent draw clear to use screen */ | ||||
| wm_draw_window_clear(win); | |||||
| wm_window_free(C, wm, win); | wm_window_free(C, wm, win); | ||||
| } | } | ||||
| while ((op = BLI_pophead(&wm->operators))) { | while ((op = BLI_pophead(&wm->operators))) { | ||||
| WM_operator_free(op); | WM_operator_free(op); | ||||
| } | } | ||||
| while ((keyconf = BLI_pophead(&wm->keyconfigs))) { | while ((keyconf = BLI_pophead(&wm->keyconfigs))) { | ||||
| ▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines | |||||