Fixed #642 - The floating window can not back to normal size after maximizing it

This commit is contained in:
Uwe Kindler 2024-07-08 14:32:33 +02:00
parent cea1327dac
commit 04f6d9168e

View File

@ -1331,7 +1331,8 @@ void CFloatingDockContainer::onMaximizeRequest()
//============================================================================ //============================================================================
void CFloatingDockContainer::showNormal(bool fixGeometry) void CFloatingDockContainer::showNormal(bool fixGeometry)
{ {
if (windowState() == Qt::WindowMaximized) if ( (windowState() & Qt::WindowMaximized) != 0 ||
(windowState() & Qt::WindowFullScreen) != 0)
{ {
QRect oldNormal = normalGeometry(); QRect oldNormal = normalGeometry();
Super::showNormal(); Super::showNormal();