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:
parent
ea287aefed
commit
e54f1cf9fb
|
@ -453,9 +453,12 @@ BOOL query_drag_drop(macdrv_query* query)
|
||||||
DROPFILES *dropfiles = GlobalLock(hdrop);
|
DROPFILES *dropfiles = GlobalLock(hdrop);
|
||||||
if (dropfiles)
|
if (dropfiles)
|
||||||
{
|
{
|
||||||
|
RECT rect;
|
||||||
dropfiles->pt.x = pt.x;
|
dropfiles->pt.x = pt.x;
|
||||||
dropfiles->pt.y = pt.y;
|
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,
|
TRACE("sending WM_DROPFILES: hwnd %p nc %d pt %s %s\n", hwnd,
|
||||||
dropfiles->fNC, wine_dbgstr_point(&dropfiles->pt),
|
dropfiles->fNC, wine_dbgstr_point(&dropfiles->pt),
|
||||||
|
|
Loading…
Reference in New Issue