Skip to content

Commit 074ff2d

Browse files
committed
Fix formatting
1 parent 4df90e1 commit 074ff2d

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

src/modules/dwl/window.cpp

+2-6
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,9 @@ Window::~Window() {
9898
}
9999
}
100100

101-
void Window::handle_title(const char *title) {
102-
title_ = Glib::Markup::escape_text(title);
103-
}
101+
void Window::handle_title(const char *title) { title_ = Glib::Markup::escape_text(title); }
104102

105-
void Window::handle_appid(const char *appid) {
106-
appid_ = Glib::Markup::escape_text(appid);
107-
}
103+
void Window::handle_appid(const char *appid) { appid_ = Glib::Markup::escape_text(appid); }
108104

109105
void Window::handle_layout_symbol(const char *layout_symbol) {
110106
layout_symbol_ = Glib::Markup::escape_text(layout_symbol);

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)