mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:18:13 +00:00
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:
parent
d5a77de906
commit
5f3d384454
1 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue