Commit 701bb452 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

winex11.drv: Inform x11 that we're interested in drop if windows expects WM_DROPFILES message.

parent 5dad1651
...@@ -339,9 +339,8 @@ void X11DRV_XDND_PositionEvent( HWND hWnd, XClientMessageEvent *event ) ...@@ -339,9 +339,8 @@ void X11DRV_XDND_PositionEvent( HWND hWnd, XClientMessageEvent *event )
if (XDNDAccepted) if (XDNDAccepted)
accept = 1; accept = 1;
else if (dropTarget == NULL && else if ((GetWindowLongW( hWnd, GWL_EXSTYLE ) & WS_EX_ACCEPTFILES) &&
(GetWindowLongW( hWnd, GWL_EXSTYLE ) & WS_EX_ACCEPTFILES) && (X11DRV_XDND_XdndActionToDROPEFFECT(event->data.l[4]) & DROPEFFECT_COPY) &&
(effect & DROPEFFECT_COPY) &&
X11DRV_XDND_HasHDROP()) X11DRV_XDND_HasHDROP())
{ {
accept = 1; accept = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment