From db44c4c478c04331b5838af2688825e0063024ae Mon Sep 17 00:00:00 2001 From: shenweip Date: Tue, 8 Oct 2013 22:04:07 +0800 Subject: [PATCH] Don't save the console position when it is minimized. --- Windows/WindowsHost.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Windows/WindowsHost.cpp b/Windows/WindowsHost.cpp index f2d26dfd47..d5804858c3 100644 --- a/Windows/WindowsHost.cpp +++ b/Windows/WindowsHost.cpp @@ -277,7 +277,7 @@ void WindowsHost::UpdateConsolePosition() { RECT rc; HWND console = GetConsoleWindow(); - if (console != NULL && GetWindowRect(console, &rc)) + if (console != NULL && GetWindowRect(console, &rc) && !IsIconic(console)) { g_Config.iConsoleWindowX = rc.left; g_Config.iConsoleWindowY = rc.top;