nested mdi: Fix floating picking the wrong title bar

Use DockWidget::titleBar() which will always travel the hierarchy
and pick the first visible title bar. We have more nesting now.
This commit is contained in:
Sergio Martins
2022-01-14 17:54:30 +00:00
parent c7682a3524
commit 95c12dbd4c

View File

@@ -205,7 +205,7 @@ bool DockWidgetBase::setFloating(bool floats)
frame->detachTab(this);
} else {
d->frame()->titleBar()->makeWindow();
titleBar()->makeWindow();
}
auto lastGeo = d->lastPositions().lastFloatingGeometry();