summaryrefslogtreecommitdiff
path: root/Servers/WindowServer/WSWindowFrame.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Servers/WindowServer/WSWindowFrame.cpp')
-rw-r--r--Servers/WindowServer/WSWindowFrame.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Servers/WindowServer/WSWindowFrame.cpp b/Servers/WindowServer/WSWindowFrame.cpp
index 32b0539d4e..5d4cd88646 100644
--- a/Servers/WindowServer/WSWindowFrame.cpp
+++ b/Servers/WindowServer/WSWindowFrame.cpp
@@ -94,14 +94,14 @@ WSWindowFrame::WSWindowFrame(WSWindow& window)
m_window.event(close_request);
}));
- m_buttons.append(make<WSButton>(*this, *s_minimize_button_bitmap, [this] (auto&) {
- m_window.set_minimized(true);
- }));
-
m_buttons.append(make<WSButton>(*this, *s_maximize_button_bitmap, [this] (auto& button) {
m_window.set_maximized(!m_window.is_maximized());
button.set_bitmap(m_window.is_maximized() ? *s_unmaximize_button_bitmap : *s_maximize_button_bitmap);
}));
+
+ m_buttons.append(make<WSButton>(*this, *s_minimize_button_bitmap, [this] (auto&) {
+ m_window.set_minimized(true);
+ }));
}
WSWindowFrame::~WSWindowFrame()