WindowServer: Minimize the modal stack when minimizing from frame

Rather than only minimizing the modal window, minimize the entire
modal window stack just like when minimizing it from the task bar.
This commit is contained in:
Tom 2020-08-14 17:00:23 -06:00 committed by Andreas Kling
parent d5a77de906
commit 5f3d384454
Notes: sideshowbarker 2024-07-19 03:37:44 +09:00

View file

@ -69,7 +69,7 @@ WindowFrame::WindowFrame(Window& window)
if (window.is_resizable()) {
auto button = make<Button>(*this, [this](auto&) {
m_window.set_maximized(!m_window.is_maximized());
WindowManager::the().maximize_windows(m_window, !m_window.is_maximized());
});
m_maximize_button = button.ptr();
m_buttons.append(move(button));
@ -77,7 +77,7 @@ WindowFrame::WindowFrame(Window& window)
if (window.is_minimizable()) {
auto button = make<Button>(*this, [this](auto&) {
m_window.set_minimized(true);
WindowManager::the().minimize_windows(m_window, true);
});
m_minimize_button = button.ptr();
m_buttons.append(move(button));