Skip to content

Commit

Permalink
Fixed #642 - The floating window can not back to normal size after ma…
Browse files Browse the repository at this point in the history
…ximizing it
  • Loading branch information
githubuser0xFFFF committed Jul 8, 2024
1 parent cea1327 commit 04f6d91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/FloatingDockContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 04f6d91

Please sign in to comment.