From 1dbd3f3f060efabeac8a4fdb96139437faebb7e2 Mon Sep 17 00:00:00 2001 From: Uwe Kindler Date: Sun, 2 Feb 2020 16:03:58 +0100 Subject: [PATCH] Blocked tabyfing via moving over DockArea titlebar if the CenterDockWidgetArea is not in the allowed areas for DockAreaWidget --- src/DockOverlay.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }