Skip to content

Commit 04f6d91

Browse files
Fixed #642 - The floating window can not back to normal size after maximizing it
1 parent cea1327 commit 04f6d91

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/FloatingDockContainer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1331,7 +1331,8 @@ void CFloatingDockContainer::onMaximizeRequest()
13311331
//============================================================================
13321332
void CFloatingDockContainer::showNormal(bool fixGeometry)
13331333
{
1334-
if (windowState() == Qt::WindowMaximized)
1334+
if ( (windowState() & Qt::WindowMaximized) != 0 ||
1335+
(windowState() & Qt::WindowFullScreen) != 0)
13351336
{
13361337
QRect oldNormal = normalGeometry();
13371338
Super::showNormal();

0 commit comments

Comments
 (0)