Skip to content

Commit

Permalink
yes
Browse files Browse the repository at this point in the history
  • Loading branch information
nnyyxxxx committed Feb 24, 2025
1 parent 890e815 commit 6c3610d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/desktop/Window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,18 @@ void CWindow::applyDynamicRule(const SP<CWindowRule>& r) {
}
break;
}
case CWindowRule::RULE_MAXIMIZE: {
m_bWasMaximized = true;
if (m_pXDGSurface && m_pXDGSurface->toplevel)
m_pXDGSurface->toplevel->setMaximized(true);
break;
}
case CWindowRule::RULE_DISABLEMAXIMIZEDHINTS: {
m_bWasMaximized = false;
if (m_pXDGSurface && m_pXDGSurface->toplevel)
m_pXDGSurface->toplevel->setMaximized(false);
break;
}
default: break;
}
}
Expand Down

0 comments on commit 6c3610d

Please sign in to comment.