winex11.drv: Call DragLeave instead of Drop if DROPEFFECT_NONE was set.
Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
a2f3d97406
commit
fd4dbf0519
|
@ -386,7 +386,7 @@ void X11DRV_XDND_DropEvent( HWND hWnd, XClientMessageEvent *event )
|
|||
if (XDNDAccepted)
|
||||
{
|
||||
dropTarget = get_droptarget_pointer(XDNDLastDropTargetWnd);
|
||||
if (dropTarget)
|
||||
if (dropTarget && effect!=DROPEFFECT_NONE)
|
||||
{
|
||||
HRESULT hr;
|
||||
POINTL pointl;
|
||||
|
@ -415,6 +415,13 @@ void X11DRV_XDND_DropEvent( HWND hWnd, XClientMessageEvent *event )
|
|||
}
|
||||
IDropTarget_Release(dropTarget);
|
||||
}
|
||||
else if (dropTarget)
|
||||
{
|
||||
HRESULT hr = IDropTarget_DragLeave(dropTarget);
|
||||
if (FAILED(hr))
|
||||
WARN("IDropTarget_DragLeave failed, error 0x%08X\n", hr);
|
||||
IDropTarget_Release(dropTarget);
|
||||
}
|
||||
}
|
||||
|
||||
if (drop_file)
|
||||
|
|
Loading…
Reference in New Issue