summaryrefslogtreecommitdiff
path: root/Userland/Services
diff options
context:
space:
mode:
authorthankyouverycool <66646555+thankyouverycool@users.noreply.github.com>2022-09-05 12:46:51 -0400
committerLinus Groh <mail@linusgroh.de>2022-09-08 10:17:27 +0100
commit0b0c4fc1e8506ad046f30f75e281e323ec87151a (patch)
treee7dddeb47d124cd14ea127f6690f0f1394954a58 /Userland/Services
parent35e557c6570f1e2a6e892b78136822af41a1b126 (diff)
downloadserenity-0b0c4fc1e8506ad046f30f75e281e323ec87151a.zip
WindowServer: Set rendered cache dirty on maximization event
Fixes restore/maximize icon not updating when the cursor overlaps window frame on restoration.
Diffstat (limited to 'Userland/Services')
-rw-r--r--Userland/Services/WindowServer/WindowFrame.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Services/WindowServer/WindowFrame.cpp b/Userland/Services/WindowServer/WindowFrame.cpp
index 0756e54c31..f39a6fc461 100644
--- a/Userland/Services/WindowServer/WindowFrame.cpp
+++ b/Userland/Services/WindowServer/WindowFrame.cpp
@@ -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);
}