replace with ungrab mouse event instead of deactivate window

Signed-off-by: Michael Pollind <mpollind@gmail.com>
This commit is contained in:
Michael Pollind
2021-10-23 11:01:07 -07:00
parent b3c7bf47f2
commit b42f1b022e
@@ -2785,17 +2785,15 @@ namespace AzQtComponents
RepaintFloatingIndicators();
}
break;
case QEvent::WindowDeactivate:
case QEvent::UngrabMouse:
// If our main window is deactivated while we are in the middle of
// a docking drag operation (e.g. popup dialog for new level), we
// should cancel our drag operation because the mouse release event
// will be lost since we lost focus
#if !defined(Q_OS_LINUX)
if (m_dropZoneState.dragging())
{
clearDraggingState();
}
#endif
if (m_dropZoneState.dragging())
{
clearDraggingState();
}
break;
}
}