From 863e395ad8bc0c921a9c836018e2c17262340f46 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 7 Jun 2018 16:43:52 +0200 Subject: Cleanup: trailing space for windowmanager --- source/blender/windowmanager/intern/wm.c | 36 ++++++++++++++++---------------- 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'source/blender/windowmanager/intern/wm.c') diff --git a/source/blender/windowmanager/intern/wm.c b/source/blender/windowmanager/intern/wm.c index a425eadfe21..98d9edb9f94 100644 --- a/source/blender/windowmanager/intern/wm.c +++ b/source/blender/windowmanager/intern/wm.c @@ -104,7 +104,7 @@ void WM_operator_free(wmOperator *op) WM_operator_free(opm); } } - + MEM_freeN(op); } @@ -187,11 +187,11 @@ void wm_operator_register(bContext *C, wmOperator *op) void WM_operator_stack_clear(wmWindowManager *wm) { wmOperator *op; - + while ((op = BLI_pophead(&wm->operators))) { WM_operator_free(op); } - + WM_main_add_notifier(NC_WM | ND_HISTORY, NULL); } @@ -359,7 +359,7 @@ void WM_keymap_init(bContext *C) wm->addonconf = WM_keyconfig_new(wm, "Blender Addon"); if (!wm->userconf) wm->userconf = WM_keyconfig_new(wm, "Blender User"); - + /* initialize only after python init is done, for keymaps that * use python operators */ if (CTX_py_init_get(C) && (wm->initialized & WM_INIT_KEYMAP) == 0) { @@ -383,7 +383,7 @@ void WM_check(bContext *C) { Main *bmain = CTX_data_main(C); wmWindowManager *wm = CTX_wm_manager(C); - + /* wm context */ if (wm == NULL) { wm = CTX_data_main(C)->wm.first; @@ -417,7 +417,7 @@ void wm_clear_default_size(bContext *C) { wmWindowManager *wm = CTX_wm_manager(C); wmWindow *win; - + /* wm context */ if (wm == NULL) { wm = CTX_data_main(C)->wm.first; @@ -427,7 +427,7 @@ void wm_clear_default_size(bContext *C) if (wm == NULL || BLI_listbase_is_empty(&wm->windows)) { return; } - + for (win = wm->windows.first; win; win = win->next) { win->sizex = 0; win->sizey = 0; @@ -443,16 +443,16 @@ void wm_add_default(bContext *C) wmWindowManager *wm = BKE_libblock_alloc(CTX_data_main(C), ID_WM, "WinMan", 0); wmWindow *win; bScreen *screen = CTX_wm_screen(C); /* XXX from file read hrmf */ - + CTX_wm_manager_set(C, wm); win = wm_window_new(C); win->screen = screen; screen->winid = win->winid; BLI_strncpy(win->screenname, screen->id.name + 2, sizeof(win->screenname)); - + wm->winactive = win; wm->file_saved = 1; - wm_window_make_drawable(wm, win); + wm_window_make_drawable(wm, win); } @@ -471,7 +471,7 @@ void wm_close_and_free(bContext *C, wmWindowManager *wm) wm_draw_window_clear(win); wm_window_free(C, wm, win); } - + while ((op = BLI_pophead(&wm->operators))) { WM_operator_free(op); } @@ -481,11 +481,11 @@ void wm_close_and_free(bContext *C, wmWindowManager *wm) } BLI_freelistN(&wm->queue); - + BLI_freelistN(&wm->paintcursors); WM_drag_free_list(&wm->drags); - + wm_reports_free(wm); if (wm->undo_stack) { @@ -515,16 +515,16 @@ void WM_main(bContext *C) wm_event_do_refresh_wm_and_depsgraph(C); while (1) { - + /* get events from ghost, handle window events, add to window queues */ - wm_window_process_events(C); - + wm_window_process_events(C); + /* per window, all events to the window, screen, area and region handlers */ wm_event_do_handlers(C); - + /* events have left notes about changes, we handle and cache it */ wm_event_do_notifiers(C); - + /* execute cached changes draw */ wm_draw_update(C); } -- cgit v1.2.3