From 04f6d9168e159f07de565c5159ecd4ea16ab5be1 Mon Sep 17 00:00:00 2001 From: Uwe Kindler Date: Mon, 8 Jul 2024 14:32:33 +0200 Subject: [PATCH] Fixed #642 - The floating window can not back to normal size after maximizing it --- src/FloatingDockContainer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/FloatingDockContainer.cpp b/src/FloatingDockContainer.cpp index 8dbfc70..81a80fb 100644 --- a/src/FloatingDockContainer.cpp +++ b/src/FloatingDockContainer.cpp @@ -1331,7 +1331,8 @@ void CFloatingDockContainer::onMaximizeRequest() //============================================================================ void CFloatingDockContainer::showNormal(bool fixGeometry) { - if (windowState() == Qt::WindowMaximized) + if ( (windowState() & Qt::WindowMaximized) != 0 || + (windowState() & Qt::WindowFullScreen) != 0) { QRect oldNormal = normalGeometry(); Super::showNormal();