diff --git a/src/FloatingDragPreview.cpp b/src/FloatingDragPreview.cpp index 3bfc1aa..9f98bd9 100644 --- a/src/FloatingDragPreview.cpp +++ b/src/FloatingDragPreview.cpp @@ -351,11 +351,10 @@ void CFloatingDragPreview::finishDragging() auto DockDropArea = d->DockManager->dockAreaOverlay()->visibleDropAreaUnderCursor(); auto ContainerDropArea = d->DockManager->containerOverlay()->visibleDropAreaUnderCursor(); bool ValidDropArea = (DockDropArea != InvalidDockWidgetArea) || (ContainerDropArea != InvalidDockWidgetArea); - bool FloatingRequested = !d->DropContainer && !ValidDropArea; // Non floatable auto hide widgets should stay in its current auto hide // state if they are dragged into a floating window - if (!FloatingRequested || d->isContentFloatable()) + if (ValidDropArea || d->isContentFloatable()) { cleanupAutoHideContainerWidget(); }