bugfix [#20083] Wrong position of splash screen on dualhead
This commit is contained in:
@@ -160,7 +160,11 @@ void WM_init_splash(bContext *C)
|
||||
wmWindow *prevwin= CTX_wm_window(C);
|
||||
|
||||
if(wm->windows.first) {
|
||||
CTX_wm_window_set(C, wm->windows.first);
|
||||
CTX_wm_window_set(C, wm->windows.first);
|
||||
|
||||
/* needed to get the right screen size for centering the splash */
|
||||
wm_window_process_events(C);
|
||||
|
||||
WM_operator_name_call(C, "WM_OT_splash", WM_OP_INVOKE_DEFAULT, NULL);
|
||||
CTX_wm_window_set(C, prevwin);
|
||||
}
|
||||
|
||||
@@ -890,8 +890,11 @@ int main(int argc, char **argv)
|
||||
WM_exit(C);
|
||||
}
|
||||
|
||||
if(!G.background && !file_loaded)
|
||||
if(!G.background && !file_loaded) {
|
||||
/* careful, calls wm_window_process_events but seems safe
|
||||
* since its called first in WM_main */
|
||||
WM_init_splash(C);
|
||||
}
|
||||
|
||||
WM_main(C);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user