From 3fa0b6cd9239d5cf5804be963ef177129d28e72e Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 2 Jun 2019 15:35:00 +0200 Subject: 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. --- Servers/WindowServer/WSWindow.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'Servers/WindowServer/WSWindow.cpp') 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(old_rect, m_rect)); } -- cgit v1.2.3