[PATCH 1/2] user32: Do not call SendMessage() to show a window that is already visible.
Alexey Prokhin
alexey at prokhin.ru
Thu Jun 6 13:55:34 CDT 2019
From: Kimmo Myllyvirta <kimmo.myllyvirta at gmail.com>
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=39731
Signed-off-by: Alexey Prokhin <alexey at prokhin.ru>
---
dlls/user32/winpos.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dlls/user32/winpos.c b/dlls/user32/winpos.c
index 5837c179e4..8e09455e99 100644
--- a/dlls/user32/winpos.c
+++ b/dlls/user32/winpos.c
@@ -1231,6 +1231,9 @@ BOOL WINAPI ShowWindow( HWND hwnd, INT cmd )
if ((cmd == SW_HIDE) && !(GetWindowLongW( hwnd, GWL_STYLE ) & WS_VISIBLE))
return FALSE;
+ if ((cmd == SW_SHOW) && (GetWindowLongW( hwnd, GWL_STYLE ) & WS_VISIBLE))
+ return TRUE;
+
return SendMessageW( hwnd, WM_WINE_SHOWWINDOW, cmd, 0 );
}
--
2.17.2 (Apple Git-113)
More information about the wine-devel
mailing list