summaryrefslogtreecommitdiff
path: root/Servers/WindowServer/WSWindowFrame.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-05-12 21:33:25 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-05-12 21:33:25 +0200
commita20ce4d2b84bfe16d3fbd8448351532c9c0be746 (patch)
treefb39c9aa24321cb5072bfb3a3bd4040af1548767 /Servers/WindowServer/WSWindowFrame.cpp
parent641893104ae28392c3b5c1502370982d060d67b7 (diff)
downloadserenity-a20ce4d2b84bfe16d3fbd8448351532c9c0be746.zip
WindowServer: Rearrange minimize/maximize/close buttons (in that order.)
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()