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

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2015-11-20 11:44:08 +01:00 committed by Alexandre Julliard
parent 5dad16510d
commit 701bb45203
1 changed files with 2 additions and 3 deletions

View File

@ -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;