Skip to content

Commit b47a777

Browse files
Fixed issue #88 - floating widgets going to the background on OSX when moving them
1 parent 5b3a0a2 commit b47a777

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/FloatingDockContainer.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,13 @@ void CFloatingDockContainer::moveEvent(QMoveEvent *event)
334334

335335
case DraggingFloatingWidget:
336336
d->updateDropOverlays(QCursor::pos());
337+
#ifdef Q_OS_MACOS
338+
// In OSX when hiding the DockAreaOverlay the application would set
339+
// the main window as the active window for some reason. This fixes
340+
// that by resetting the active window to the floating widget after
341+
// updating the overlays.
342+
QApplication::setActiveWindow(this);
343+
#endif
337344
break;
338345
default:
339346
break;

0 commit comments

Comments
 (0)