[5/5] user32: Always send WM_CAPTURECHANGED in menu mode.

Vincent Povirk madewokherd at gmail.com
Thu Apr 24 13:52:40 CDT 2014


-------------- next part --------------
From 7860f1df4c55f99f5310ace44f7bc10e4d007fcc Mon Sep 17 00:00:00 2001
From: Vincent Povirk <vincent at codeweavers.com>
Date: Tue, 25 Mar 2014 15:54:48 -0500
Subject: [PATCH 5/8] user32: Always send WM_CAPTURECHANGED in menu mode.

---
 dlls/user32/input.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/user32/input.c b/dlls/user32/input.c
index 457e67c..e9f6a7b 100644
--- a/dlls/user32/input.c
+++ b/dlls/user32/input.c
@@ -107,7 +107,7 @@ BOOL set_capture_window( HWND hwnd, UINT gui_flags, HWND *prev_ret )
     {
         USER_Driver->pSetCapture( hwnd, gui_flags );
 
-        if (previous && previous != hwnd)
+        if (previous && (previous != hwnd || (gui_flags & GUI_INMENUMODE) == GUI_INMENUMODE))
             SendMessageW( previous, WM_CAPTURECHANGED, 0, (LPARAM)hwnd );
 
         if (prev_ret) *prev_ret = previous;
-- 
1.8.3.2



More information about the wine-patches mailing list