mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-14 20:40:03 +02:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user