Skip to content

Commit c398ea3

Browse files
committed
fix broken clang-format to run pipeline
1 parent f2ed236 commit c398ea3

File tree

3 files changed

+5
-13
lines changed

3 files changed

+5
-13
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_) {

src/util/pipewire/pipewire_backend.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ void PipewireBackend::handleRegistryEventGlobal(uint32_t id, uint32_t permission
126126
if (proxy == nullptr) return;
127127

128128
auto *pNodeInfo = (PrivacyNodeInfo *)pw_proxy_get_user_data(proxy);
129-
new(pNodeInfo) PrivacyNodeInfo{};
129+
new (pNodeInfo) PrivacyNodeInfo{};
130130
pNodeInfo->id = id;
131131
pNodeInfo->data = this;
132132
pNodeInfo->type = mediaType;

0 commit comments

Comments
 (0)