Skip to content

Commit

Permalink
An additional fix for #496 Nonfloatable hidden window disappears on d…
Browse files Browse the repository at this point in the history
…rop in empty area
  • Loading branch information
githubuser0xFFFF committed Mar 22, 2023
1 parent db3dc80 commit df34b0e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/FloatingDragPreview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit df34b0e

Please sign in to comment.