replace with ungrab mouse event instead of deactivate window
Signed-off-by: Michael Pollind <mpollind@gmail.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user