From 2ebefb1280b917b495784e1742613bd3aede86ee Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Mon, 12 Jul 2021 21:35:43 +0200 Subject: [PATCH] Send an escape key press instead of WM_QUIT This should allow the drag-and-drop operation to quit gracefully. --- src/wine-host/xdnd-proxy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wine-host/xdnd-proxy.cpp b/src/wine-host/xdnd-proxy.cpp index 109e9a3f..d2e57d7e 100644 --- a/src/wine-host/xdnd-proxy.cpp +++ b/src/wine-host/xdnd-proxy.cpp @@ -539,7 +539,7 @@ void WineXdndProxy::run_xdnd_loop() { // Make sure the Windows drag-and-drop operation doesn't get stuck for // whatever reason (it shouldn't but who knows) if (drop_finished) { - PostMessageW(tracker_window, WM_QUIT, 0, 0); + PostMessageW(tracker_window, WM_KEYDOWN, VK_ESCAPE, 0); } end_xdnd();