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:
Robbert van der Helm
2021-07-12 14:00:48 +02:00
parent ad4fb1a0ec
commit 96fb53be8f
+1 -1
View File
@@ -192,7 +192,7 @@ void WineXdndProxy::begin_xdnd(const boost::container::small_vector_base<
// NOTE: Needed for a quirk in MT-PowerDrumkit
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");
}