From 4d74963e0a622afbd28a1b63de342840096f4767 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sun, 11 Jul 2021 21:35:39 +0200 Subject: [PATCH] Flush any spooled XDND messages The last position change message would never reach REAPER under when using certain plugins because we forgot the flush. --- src/wine-host/xdnd-proxy.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wine-host/xdnd-proxy.cpp b/src/wine-host/xdnd-proxy.cpp index e6ec0319..b46e74a3 100644 --- a/src/wine-host/xdnd-proxy.cpp +++ b/src/wine-host/xdnd-proxy.cpp @@ -282,6 +282,8 @@ void WineXdndProxy::run_xdnd_loop() { next_position_message_position.reset(); last_window_accepted_status = false; waiting_for_status_message = false; + + xcb_flush(x11_connection.get()); } }; @@ -292,6 +294,8 @@ void WineXdndProxy::run_xdnd_loop() { xcb_xdnd_copy_action); next_position_message_position.reset(); waiting_for_status_message = true; + + xcb_flush(x11_connection.get()); } };