mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +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:
parent
35e557c657
commit
0b0c4fc1e8
Notes:
sideshowbarker
2024-07-17 07:21:31 +09:00
Author: https://github.com/thankyouverycool
Commit: 0b0c4fc1e8
Pull-request: https://github.com/SerenityOS/serenity/pull/15158
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue