diff --git a/src/DockOverlay.cpp b/src/DockOverlay.cpp index afa8e8a..b16fb49 100644 --- a/src/DockOverlay.cpp +++ b/src/DockOverlay.cpp @@ -386,7 +386,8 @@ DockWidgetArea CDockOverlay::dropAreaUnderCursor() const return Result; } - if (DockArea->titleBarGeometry().contains(DockArea->mapFromGlobal(QCursor::pos()))) + if (DockArea->allowedAreas().testFlag(CenterDockWidgetArea) + && DockArea->titleBarGeometry().contains(DockArea->mapFromGlobal(QCursor::pos()))) { return CenterDockWidgetArea; }