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 refresh MDI menus when DefMDIChildProc(WM_SETTEXT) is called.
This commit is contained in:
@@ -275,6 +275,7 @@ patch_enable_all ()
|
||||
enable_user32_ListBox_Size="$1"
|
||||
enable_user32_Mouse_Message_Hwnd="$1"
|
||||
enable_user32_Painting="$1"
|
||||
enable_user32_Refresh_MDI_Menus="$1"
|
||||
enable_user32_ScrollWindowEx="$1"
|
||||
enable_user32_WndProc="$1"
|
||||
enable_uxtheme_GTK_Theming="$1"
|
||||
@@ -922,6 +923,9 @@ patch_enable ()
|
||||
user32-Painting)
|
||||
enable_user32_Painting="$2"
|
||||
;;
|
||||
user32-Refresh_MDI_Menus)
|
||||
enable_user32_Refresh_MDI_Menus="$2"
|
||||
;;
|
||||
user32-ScrollWindowEx)
|
||||
enable_user32_ScrollWindowEx="$2"
|
||||
;;
|
||||
@@ -5388,6 +5392,21 @@ if test "$enable_user32_Painting" -eq 1; then
|
||||
) >> "$patchlist"
|
||||
fi
|
||||
|
||||
# Patchset user32-Refresh_MDI_Menus
|
||||
# |
|
||||
# | This patchset fixes the following Wine bugs:
|
||||
# | * [#21855] Refresh MDI menus when DefMDIChildProc(WM_SETTEXT) is called
|
||||
# |
|
||||
# | Modified files:
|
||||
# | * dlls/user32/mdi.c
|
||||
# |
|
||||
if test "$enable_user32_Refresh_MDI_Menus" -eq 1; then
|
||||
patch_apply user32-Refresh_MDI_Menus/0001-user32-Refresh-MDI-menus-when-DefMDIChildProcW-WM_SE.patch
|
||||
(
|
||||
echo '+ { "Sebastian Lackner", "user32: Refresh MDI menus when DefMDIChildProc(WM_SETTEXT) is called.", 1 },';
|
||||
) >> "$patchlist"
|
||||
fi
|
||||
|
||||
# Patchset user32-ScrollWindowEx
|
||||
# |
|
||||
# | This patchset fixes the following Wine bugs:
|
||||
|
@@ -0,0 +1,33 @@
|
||||
From 376bc1c96b3fe8aa79516198aa59763a762392ee Mon Sep 17 00:00:00 2001
|
||||
From: Sebastian Lackner <sebastian@fds-team.de>
|
||||
Date: Sun, 27 Sep 2015 19:35:05 +0200
|
||||
Subject: user32: Refresh MDI menus when DefMDIChildProc(WM_SETTEXT) is
|
||||
called.
|
||||
|
||||
---
|
||||
dlls/user32/mdi.c | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/dlls/user32/mdi.c b/dlls/user32/mdi.c
|
||||
index 41b5077..635c8b2 100644
|
||||
--- a/dlls/user32/mdi.c
|
||||
+++ b/dlls/user32/mdi.c
|
||||
@@ -1425,6 +1425,7 @@ LRESULT WINAPI DefMDIChildProcA( HWND hwnd, UINT message,
|
||||
DefWindowProcA(hwnd, message, wParam, lParam);
|
||||
if( ci->hwndChildMaximized == hwnd )
|
||||
MDI_UpdateFrameText( GetParent(client), client, TRUE, NULL );
|
||||
+ MDI_RefreshMenu( ci );
|
||||
return 1; /* success. FIXME: check text length */
|
||||
|
||||
case WM_GETMINMAXINFO:
|
||||
@@ -1465,6 +1466,7 @@ LRESULT WINAPI DefMDIChildProcW( HWND hwnd, UINT message,
|
||||
DefWindowProcW(hwnd, message, wParam, lParam);
|
||||
if( ci->hwndChildMaximized == hwnd )
|
||||
MDI_UpdateFrameText( GetParent(client), client, TRUE, NULL );
|
||||
+ MDI_RefreshMenu( ci );
|
||||
return 1; /* success. FIXME: check text length */
|
||||
|
||||
case WM_GETMINMAXINFO:
|
||||
--
|
||||
2.5.1
|
||||
|
1
patches/user32-Refresh_MDI_Menus/definition
Normal file
1
patches/user32-Refresh_MDI_Menus/definition
Normal file
@@ -0,0 +1 @@
|
||||
Fixes: [21855] Refresh MDI menus when DefMDIChildProc(WM_SETTEXT) is called
|
Reference in New Issue
Block a user