Skip to content

Commit 3cd5c21

Browse files
committed
Fix formatting
1 parent 4df90e1 commit 3cd5c21

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/modules/hyprland/window.cpp

+2-6
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,20 @@
66
#include <spdlog/spdlog.h>
77

88
#include <algorithm>
9+
#include <shared_mutex>
10+
#include <thread>
911
#include <vector>
1012

1113
#include "modules/hyprland/backend.hpp"
1214
#include "util/rewrite_string.hpp"
1315
#include "util/sanitize_str.hpp"
1416

15-
#include <shared_mutex>
16-
#include <thread>
17-
1817
namespace waybar::modules::hyprland {
1918

2019
std::shared_mutex windowIpcSmtx;
2120

2221
Window::Window(const std::string& id, const Bar& bar, const Json::Value& config)
2322
: AAppIconLabel(config, "window", id, "{title}", 0, true), bar_(bar) {
24-
2523
std::unique_lock<std::shared_mutex> windowIpcUniqueLock(windowIpcSmtx);
2624

2725
modulesReady = true;
@@ -51,7 +49,6 @@ Window::~Window() {
5149
}
5250

5351
auto Window::update() -> void {
54-
5552
std::shared_lock<std::shared_mutex> windowIpcShareLock(windowIpcSmtx);
5653

5754
std::string windowName = waybar::util::sanitize_string(workspace_.last_window_title);
@@ -153,7 +150,6 @@ auto Window::WindowData::parse(const Json::Value& value) -> Window::WindowData {
153150
}
154151

155152
void Window::queryActiveWorkspace() {
156-
157153
std::shared_lock<std::shared_mutex> windowIpcShareLock(windowIpcSmtx);
158154

159155
if (separateOutputs_) {

0 commit comments

Comments
 (0)