mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-09 20:29:10 +02:00
Fix the CAS in the XDND check
Oops. We were doing the opposite of what we wanted, which caused the first drag to always fail.
This commit is contained in:
@@ -192,7 +192,7 @@ void WineXdndProxy::begin_xdnd(const boost::container::small_vector_base<
|
|||||||
|
|
||||||
// NOTE: Needed for a quirk in MT-PowerDrumkit
|
// NOTE: Needed for a quirk in MT-PowerDrumkit
|
||||||
bool expected = false;
|
bool expected = false;
|
||||||
if (drag_active.compare_exchange_strong(expected, true)) {
|
if (!drag_active.compare_exchange_strong(expected, true)) {
|
||||||
throw std::runtime_error("A drag-and-drop operation is already active");
|
throw std::runtime_error("A drag-and-drop operation is already active");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user