From 39d70c81861e729b702d39e7bd304cf406c4da6c Mon Sep 17 00:00:00 2001 From: Sergio Martins Date: Mon, 25 May 2020 20:48:18 +0100 Subject: [PATCH] Fix crash due to recurency in DragController A drop could cause the events to be processed and trigger another mouse move Fixes: #19 --- src/private/DragController.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/private/DragController.cpp b/src/private/DragController.cpp index 0b394571..1281015f 100644 --- a/src/private/DragController.cpp +++ b/src/private/DragController.cpp @@ -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);