[1/2] user32: better HTTRANSPARENT handling

Daniel Jelinski djelinski1 at gmail.com
Mon Aug 6 16:10:29 CDT 2012


Fixes bug 9512 and bug 8914. Tests indicate that when a HTTRANSPARENT
window is clicked and window behind it belongs to another thread, no
one gets the mouse message. The remaining differences are:
- wine server does not provide a list of non-wine windows, so these
windows are ignored when checking which window should get the message
- the window that gets the mouse message should also be activated and
brought to front. However the applications in question do not strictly
require that.
-------------- next part --------------
From 6bb8ebea243e4136de58922d99ca897a914bd4ce Mon Sep 17 00:00:00 2001
From: Daniel Jelinski <djelinski1 at gmail.com>
Date: Mon, 6 Aug 2012 22:56:13 +0200
Subject: user32: better HTTRANSPARENT handling

---
 dlls/user32/message.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/user32/message.c b/dlls/user32/message.c
index 4972bb8..c1bd991 100644
--- a/dlls/user32/message.c
+++ b/dlls/user32/message.c
@@ -2378,7 +2378,7 @@ static BOOL process_mouse_message( MSG *msg, UINT hw_id, ULONG_PTR extra_info, H
     }
     else
     {
-        msg->hwnd = WINPOS_WindowFromPoint( msg->hwnd, msg->pt, &hittest );
+        msg->hwnd = WINPOS_WindowFromPoint( 0, msg->pt, &hittest );
     }
 
     if (!msg->hwnd || !WIN_IsCurrentThread( msg->hwnd ))
-- 
1.7.5.4


More information about the wine-patches mailing list