Piotr Caban : winex11.drv: Inform x11 that we' re interested in drop if windows expects WM_DROPFILES message.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Nov 20 07:48:47 CST 2015
Module: wine
Branch: master
Commit: 701bb45203e3e5b6924c43916b75416a94206d93
URL: http://source.winehq.org/git/wine.git/?a=commit;h=701bb45203e3e5b6924c43916b75416a94206d93
Author: Piotr Caban <piotr at codeweavers.com>
Date: Fri Nov 20 11:44:08 2015 +0100
winex11.drv: Inform x11 that we're interested in drop if windows expects WM_DROPFILES message.
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/winex11.drv/xdnd.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/dlls/winex11.drv/xdnd.c b/dlls/winex11.drv/xdnd.c
index 4cbefc9..59c1671 100644
--- a/dlls/winex11.drv/xdnd.c
+++ b/dlls/winex11.drv/xdnd.c
@@ -339,9 +339,8 @@ void X11DRV_XDND_PositionEvent( HWND hWnd, XClientMessageEvent *event )
if (XDNDAccepted)
accept = 1;
- else if (dropTarget == NULL &&
- (GetWindowLongW( hWnd, GWL_EXSTYLE ) & WS_EX_ACCEPTFILES) &&
- (effect & DROPEFFECT_COPY) &&
+ else if ((GetWindowLongW( hWnd, GWL_EXSTYLE ) & WS_EX_ACCEPTFILES) &&
+ (X11DRV_XDND_XdndActionToDROPEFFECT(event->data.l[4]) & DROPEFFECT_COPY) &&
X11DRV_XDND_HasHDROP())
{
accept = 1;
More information about the wine-cvs
mailing list