winemac.drv: Indicate whether the drop point is non-client area.

Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Akihiro Sagawa 2019-08-29 13:25:27 -05:00 committed by Alexandre Julliard
parent ea287aefed
commit e54f1cf9fb

View file

@ -453,9 +453,12 @@ BOOL query_drag_drop(macdrv_query* query)
DROPFILES *dropfiles = GlobalLock(hdrop);
if (dropfiles)
{
RECT rect;
dropfiles->pt.x = pt.x;
dropfiles->pt.y = pt.y;
dropfiles->fNC = !ScreenToClient(hwnd, &dropfiles->pt);
dropfiles->fNC = !(ScreenToClient(hwnd, &dropfiles->pt) &&
GetClientRect(hwnd, &rect) &&
PtInRect(&rect, dropfiles->pt));
TRACE("sending WM_DROPFILES: hwnd %p nc %d pt %s %s\n", hwnd,
dropfiles->fNC, wine_dbgstr_point(&dropfiles->pt),