1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:17:35 +00:00

WindowServer: Always update the maximize button icon when we should.

We were only updating it in the WSButton callback, not when changing the
maximized state by calling WSWindow::set_maximized().

Fixes #119.
This commit is contained in:
Andreas Kling 2019-06-02 15:35:00 +02:00
parent ae4ac524ad
commit 3fa0b6cd92
4 changed files with 16 additions and 8 deletions

View file

@ -151,6 +151,7 @@ void WSWindow::set_maximized(bool maximized)
} else {
set_rect(m_unmaximized_rect);
}
m_frame.did_set_maximized({}, maximized);
WSEventLoop::the().post_event(*this, make<WSResizeEvent>(old_rect, m_rect));
}