diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-06-02 15:35:00 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-06-02 15:35:00 +0200 |
commit | 3fa0b6cd9239d5cf5804be963ef177129d28e72e (patch) | |
tree | c33279dad4aed4f890abe76b48a3deb0400d3f4d /Servers/WindowServer/WSWindow.cpp | |
parent | ae4ac524adcb751242823414f702d0c9976c88cc (diff) | |
download | serenity-3fa0b6cd9239d5cf5804be963ef177129d28e72e.zip |
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.
Diffstat (limited to 'Servers/WindowServer/WSWindow.cpp')
-rw-r--r-- | Servers/WindowServer/WSWindow.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Servers/WindowServer/WSWindow.cpp b/Servers/WindowServer/WSWindow.cpp index a6a85ff79b..927929bc45 100644 --- a/Servers/WindowServer/WSWindow.cpp +++ b/Servers/WindowServer/WSWindow.cpp @@ -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)); } |