Send an escape key press instead of WM_QUIT

This should allow the drag-and-drop operation to quit gracefully.
This commit is contained in:
Robbert van der Helm
2021-07-12 21:35:43 +02:00
parent bbb84cdf2c
commit 2ebefb1280
+1 -1
View File
@@ -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();