diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-06-07 11:47:19 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-06-07 11:47:19 +0200 |
commit | 8358833bc8eb15d36086d41707ca107eb89a36ab (patch) | |
tree | ba5130de8f752fba1043a6e2423a7709b14e6aaf /Servers/WindowServer/WSWindowSwitcher.cpp | |
parent | 76b333749899c666dee522fd064234d8b94d9cfd (diff) | |
download | serenity-8358833bc8eb15d36086d41707ca107eb89a36ab.zip |
WindowServer: Run clang-format on everything.
Diffstat (limited to 'Servers/WindowServer/WSWindowSwitcher.cpp')
-rw-r--r-- | Servers/WindowServer/WSWindowSwitcher.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/Servers/WindowServer/WSWindowSwitcher.cpp b/Servers/WindowServer/WSWindowSwitcher.cpp index 69a84ec81a..42554265df 100644 --- a/Servers/WindowServer/WSWindowSwitcher.cpp +++ b/Servers/WindowServer/WSWindowSwitcher.cpp @@ -1,9 +1,9 @@ -#include <WindowServer/WSWindowSwitcher.h> -#include <WindowServer/WSWindowManager.h> -#include <WindowServer/WSEvent.h> -#include <WindowServer/WSScreen.h> #include <SharedGraphics/Font.h> #include <SharedGraphics/StylePainter.h> +#include <WindowServer/WSEvent.h> +#include <WindowServer/WSScreen.h> +#include <WindowServer/WSWindowManager.h> +#include <WindowServer/WSWindowSwitcher.h> static WSWindowSwitcher* s_the; @@ -70,8 +70,8 @@ void WSWindowSwitcher::on_key_event(const WSKeyEvent& event) void WSWindowSwitcher::draw() { Painter painter(*m_switcher_window->backing_store()); - painter.fill_rect({ { }, m_rect.size() }, Color::LightGray); - painter.draw_rect({ { }, m_rect.size() }, Color::DarkGray); + painter.fill_rect({ {}, m_rect.size() }, Color::LightGray); + painter.draw_rect({ {}, m_rect.size() }, Color::DarkGray); for (int index = 0; index < m_windows.size(); ++index) { auto& window = *m_windows.at(index); Rect item_rect { @@ -116,14 +116,15 @@ void WSWindowSwitcher::refresh() m_selected_index = 0; int window_count = 0; int longest_title_width = 0; - wm.for_each_visible_window_of_type_from_front_to_back(WSWindowType::Normal, [&] (WSWindow& window) { + wm.for_each_visible_window_of_type_from_front_to_back(WSWindowType::Normal, [&](WSWindow& window) { ++window_count; longest_title_width = max(longest_title_width, wm.font().width(window.title())); if (selected_window == &window) m_selected_index = m_windows.size(); m_windows.append(window.make_weak_ptr()); return IterationDecision::Continue; - }, true); + }, + true); if (m_windows.is_empty()) { hide(); return; |