Fixed issue #88 - floating widgets going to the background on OSX when moving them

This commit is contained in:
Uwe Kindler 2019-12-13 20:56:50 +01:00
parent 5b3a0a28df
commit b47a777f5c

View File

@ -334,6 +334,13 @@ void CFloatingDockContainer::moveEvent(QMoveEvent *event)
case DraggingFloatingWidget:
d->updateDropOverlays(QCursor::pos());
#ifdef Q_OS_MACOS
// In OSX when hiding the DockAreaOverlay the application would set
// the main window as the active window for some reason. This fixes
// that by resetting the active window to the floating widget after
// updating the overlays.
QApplication::setActiveWindow(this);
#endif
break;
default:
break;