From: Alexandre Julliard <julliard@winehq.org>
Subject: Re: [PATCH] user32: Allow mouse messages to land on windows below top-level HTTRANSPARENT windows.
Message-Id: <87a7wu55zc.fsf@winehq.org>
Date: Wed, 31 Jan 2018 17:48:55 +0100
In-Reply-To: <1517309549-9908-1-git-send-email-huw@codeweavers.com> (Huw Davies's message of "Tue, 30 Jan 2018 10:52:29 +0000")
References: <1517309549-9908-1-git-send-email-huw@codeweavers.com>

Huw Davies <huw@codeweavers.com> writes:

> @@ -2502,7 +2502,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 );

In general we want to trust the X11 window information over the
wineserver. In particular I don't think we want to send a mouse click to
some unrelated window that may be behind another X11 window. Also note
that the same patch in staging has been reported to cause regressions.

-- 
Alexandre Julliard
julliard@winehq.org