Only allow a single XDND operation at a time

MT-PowerDrumkit apparently cancels its drag-and-drop operations and then
immediately starts a new one.
This commit is contained in:
Robbert van der Helm
2021-07-12 12:33:17 +02:00
parent a478436af6
commit 2f8bb7ef06
2 changed files with 15 additions and 1 deletions
+7
View File
@@ -234,6 +234,13 @@ class WineXdndProxy {
hook_handle;
#pragma GCC diagnostic pop
/**
* MT-PowerDrumkit for some reason initializes a drag-and-drop operation,
* cancels it, and then immediately starts a new one. We need to make sure
* that we only handle a single drag-and-drop operation at a time.
*/
std::atomic_bool drag_active = false;
/**
* The files that are currently being dragged, stored as in `text/uri-list`
* format (i.e. a list of URIs, each ending with a line feed)