Skip to content

Commit

Permalink
WindowServer: Minimize the modal stack when minimizing from frame
Browse files Browse the repository at this point in the history
Rather than only minimizing the modal window, minimize the entire
modal window stack just like when minimizing it from the task bar.
  • Loading branch information
tomuta authored and awesomekling committed Aug 14, 2020
1 parent d5a77de commit 5f3d384
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Services/WindowServer/WindowFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,15 @@ 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));
}

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));
Expand Down

0 comments on commit 5f3d384

Please sign in to comment.