mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +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
Notes:
sideshowbarker
2024-07-19 03:37:44 +09:00
Author: https://github.com/tomuta Commit: https://github.com/SerenityOS/serenity/commit/5f3d3844541 Pull-request: https://github.com/SerenityOS/serenity/pull/3150
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…
Reference in a new issue