From 46aa066f7bb34d482a06b6d545108d05d51bf664 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Mon, 2 Feb 2026 22:59:05 +0100 Subject: [PATCH] A change that got left out of the fullscreen refactor --- Windows/MainWindow.cpp | 43 +++++++++++++++++++++--------------------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/Windows/MainWindow.cpp b/Windows/MainWindow.cpp index 9648928dd0..88b140c26a 100644 --- a/Windows/MainWindow.cpp +++ b/Windows/MainWindow.cpp @@ -851,28 +851,29 @@ namespace MainWindow { GetWindowPlacement(hWnd, &wp); if (!g_Config.bFullScreen) { g_Config.iWindowSizeState = (int)ShowCmdToWindowSizeState(wp.showCmd); - switch (wp.showCmd) { - case SW_SHOWNORMAL: - case SW_SHOWMAXIMIZED: - if (hasFocus) { - g_InputManager.GainFocus(); - } - if (g_wasMinimized) { - System_PostUIMessage(UIMessage::WINDOW_RESTORED, "true"); - g_wasMinimized = false; - } - break; - case SW_SHOWMINIMIZED: - Native_NotifyWindowHidden(true); - if (!g_Config.bPauseWhenMinimized) { - System_PostUIMessage(UIMessage::WINDOW_MINIMIZED, "true"); - } - g_InputManager.LoseFocus(); - g_wasMinimized = true; - break; - default: - break; + } + + switch (wp.showCmd) { + case SW_SHOWNORMAL: + case SW_SHOWMAXIMIZED: + if (hasFocus) { + g_InputManager.GainFocus(); } + if (g_wasMinimized) { + System_PostUIMessage(UIMessage::WINDOW_RESTORED, "true"); + g_wasMinimized = false; + } + break; + case SW_SHOWMINIMIZED: + Native_NotifyWindowHidden(true); + if (!g_Config.bPauseWhenMinimized) { + System_PostUIMessage(UIMessage::WINDOW_MINIMIZED, "true"); + } + g_InputManager.LoseFocus(); + g_wasMinimized = true; + break; + default: + break; } if (sizeChanged) {