You've already forked wine-staging
mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-09-12 18:50:20 -07:00
Added patch to send WM_DROPFILES only when OLE dnd fails.
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
From f9febc3f5b77bb466f0173fbdb74d2a165038382 Mon Sep 17 00:00:00 2001
|
||||
From: Damjan Jovanovic <damjan.jov@gmail.com>
|
||||
Date: Sat, 13 Jun 2015 00:59:15 +0200
|
||||
Subject: winex11.drv: Only send WM_DROPFILES when OLE dnd fails.
|
||||
|
||||
---
|
||||
dlls/winex11.drv/xdnd.c | 10 ++++++----
|
||||
1 file changed, 6 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/dlls/winex11.drv/xdnd.c b/dlls/winex11.drv/xdnd.c
|
||||
index f6ce5e9..e660316 100644
|
||||
--- a/dlls/winex11.drv/xdnd.c
|
||||
+++ b/dlls/winex11.drv/xdnd.c
|
||||
@@ -378,10 +378,6 @@ void X11DRV_XDND_DropEvent( HWND hWnd, XClientMessageEvent *event )
|
||||
|
||||
TRACE("\n");
|
||||
|
||||
- /* If we have a HDROP type we send a WM_ACCEPTFILES.*/
|
||||
- if (GetWindowLongW( hWnd, GWL_EXSTYLE ) & WS_EX_ACCEPTFILES)
|
||||
- X11DRV_XDND_SendDropFiles( hWnd );
|
||||
-
|
||||
/* Notify OLE of Drop */
|
||||
dropTarget = get_droptarget_pointer(XDNDLastDropTargetWnd);
|
||||
if (dropTarget)
|
||||
@@ -407,6 +403,12 @@ void X11DRV_XDND_DropEvent( HWND hWnd, XClientMessageEvent *event )
|
||||
WARN("drop failed, error 0x%08X\n", hr);
|
||||
IDropTarget_Release(dropTarget);
|
||||
}
|
||||
+ else
|
||||
+ {
|
||||
+ /* If we have a HDROP type we send a WM_ACCEPTFILES.*/
|
||||
+ if (GetWindowLongW( hWnd, GWL_EXSTYLE ) & WS_EX_ACCEPTFILES)
|
||||
+ X11DRV_XDND_SendDropFiles( hWnd );
|
||||
+ }
|
||||
|
||||
X11DRV_XDND_FreeDragDropOp();
|
||||
|
||||
--
|
||||
2.4.2
|
||||
|
||||
1
patches/winex11-DragAndDrop/definition
Normal file
1
patches/winex11-DragAndDrop/definition
Normal file
@@ -0,0 +1 @@
|
||||
Fixes: [29081] Only send WM_DROPFILES when OLE dnd fails
|
||||
Reference in New Issue
Block a user