Fix crash due to recurency in DragController

A drop could cause the events to be processed and trigger
another mouse move

Fixes: #19
This commit is contained in:
Sergio Martins
2020-05-25 20:48:18 +01:00
parent d541a41536
commit 39d70c8186

View File

@@ -232,6 +232,11 @@ bool StateDragging::handleMouseMove(QPoint globalPos)
return true;
}
if (fw->beingDeleted()) {
// Ignore, we're in the middle of recurrency. We're inside StateDragging::handleMouseButtonRelease too
return true;
}
if (!q->m_nonClientDrag)
fw->windowHandle()->setPosition(globalPos - q->m_offset);