Windows: Reduce focus juggling on game start.

Previously, we would activate the debugger (if enabled), and then
reactivate the main window.  This meant if you switched to something,
PPSSPP would demand focus once the game loaded.
This commit is contained in:
Unknown W. Brackets 2021-04-24 23:53:16 -07:00
parent 8d0ca1e4f1
commit 5f9dfeea86
5 changed files with 13 additions and 10 deletions

View file

@ -540,7 +540,7 @@ namespace MainWindow
void CreateDebugWindows() {
disasmWindow = new CDisasm(MainWindow::GetHInstance(), MainWindow::GetHWND(), currentDebugMIPS);
DialogManager::AddDlg(disasmWindow);
disasmWindow->Show(g_Config.bShowDebuggerOnLoad);
disasmWindow->Show(g_Config.bShowDebuggerOnLoad, false);
#if PPSSPP_API(ANY_GL)
geDebuggerWindow = new CGEDebugger(MainWindow::GetHInstance(), MainWindow::GetHWND());
@ -935,8 +935,6 @@ namespace MainWindow
if (disasmWindow)
disasmWindow->UpdateDialog();
SetForegroundWindow(hwndMain);
break;
case WM_USER_SAVESTATE_FINISH: