diff options
-rw-r--r-- | source/blender/windowmanager/intern/wm.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/windowmanager/intern/wm.c b/source/blender/windowmanager/intern/wm.c index 77e17ad4687..454239e5cf0 100644 --- a/source/blender/windowmanager/intern/wm.c +++ b/source/blender/windowmanager/intern/wm.c @@ -275,6 +275,11 @@ void WM_check(bContext *C) return; } + /* Run before loading the keyconfig. */ + if (wm->message_bus == NULL) { + wm->message_bus = WM_msgbus_create(); + } + if (!G.background) { /* case: fileread */ if ((wm->initialized & WM_WINDOW_IS_INITIALIZED) == 0) { @@ -286,10 +291,6 @@ void WM_check(bContext *C) wm_window_ghostwindows_ensure(wm); } - if (wm->message_bus == NULL) { - wm->message_bus = WM_msgbus_create(); - } - /* case: fileread */ /* note: this runs in bg mode to set the screen context cb */ if ((wm->initialized & WM_WINDOW_IS_INITIALIZED) == 0) { |