diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-05-12 21:33:25 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-05-12 21:33:25 +0200 |
commit | a20ce4d2b84bfe16d3fbd8448351532c9c0be746 (patch) | |
tree | fb39c9aa24321cb5072bfb3a3bd4040af1548767 /Servers/WindowServer/WSWindowFrame.cpp | |
parent | 641893104ae28392c3b5c1502370982d060d67b7 (diff) | |
download | serenity-a20ce4d2b84bfe16d3fbd8448351532c9c0be746.zip |
WindowServer: Rearrange minimize/maximize/close buttons (in that order.)
Diffstat (limited to 'Servers/WindowServer/WSWindowFrame.cpp')
-rw-r--r-- | Servers/WindowServer/WSWindowFrame.cpp | 8 |
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() |