You've already forked wine-staging
mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-09-12 18:50:20 -07:00
Added patch to fix handling of ShowWindow when window is already visible.
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
From 33f637536046687bc533370397ed7fc704eaa0e2 Mon Sep 17 00:00:00 2001
|
||||
From: Kimmo Myllyvirta <kimmo.myllyvirta@gmail.com>
|
||||
Date: Fri, 28 Apr 2017 15:28:55 +0200
|
||||
Subject: user32: ShowWindow should not send message when window is already
|
||||
visible.
|
||||
|
||||
---
|
||||
dlls/user32/winpos.c | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/dlls/user32/winpos.c b/dlls/user32/winpos.c
|
||||
index c2b35ec1f5..64fdfe01b0 100644
|
||||
--- a/dlls/user32/winpos.c
|
||||
+++ b/dlls/user32/winpos.c
|
||||
@@ -1239,6 +1239,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.12.2
|
||||
|
1
patches/user32-ShowWindow/definition
Normal file
1
patches/user32-ShowWindow/definition
Normal file
@@ -0,0 +1 @@
|
||||
Fixes: [39731] Fix handling of ShowWindow when window is already visible
|
Reference in New Issue
Block a user