1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:38:11 +00:00

WindowServer: Set rendered cache dirty on maximization event

Fixes restore/maximize icon not updating when the cursor overlaps
window frame on restoration.
This commit is contained in:
thankyouverycool 2022-09-05 12:46:51 -04:00 committed by Linus Groh
parent 35e557c657
commit 0b0c4fc1e8

View file

@ -242,6 +242,7 @@ bool WindowFrame::has_shadow() const
void WindowFrame::did_set_maximized(Badge<Window>, bool maximized)
{
VERIFY(m_maximize_button);
set_dirty();
m_maximize_button->set_icon(maximized ? s_restore_icon : s_maximize_icon);
}