Skip to content

Commit

Permalink
fix broken clang-format to run pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
TripleTrable committed Jan 13, 2025
1 parent f2ed236 commit c398ea3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
8 changes: 2 additions & 6 deletions src/modules/dwl/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,9 @@ Window::~Window() {
}
}

void Window::handle_title(const char *title) {
title_ = Glib::Markup::escape_text(title);
}
void Window::handle_title(const char *title) { title_ = Glib::Markup::escape_text(title); }

void Window::handle_appid(const char *appid) {
appid_ = Glib::Markup::escape_text(appid);
}
void Window::handle_appid(const char *appid) { appid_ = Glib::Markup::escape_text(appid); }

void Window::handle_layout_symbol(const char *layout_symbol) {
layout_symbol_ = Glib::Markup::escape_text(layout_symbol);
Expand Down
8 changes: 2 additions & 6 deletions src/modules/hyprland/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,20 @@
#include <spdlog/spdlog.h>

#include <algorithm>
#include <shared_mutex>
#include <thread>
#include <vector>

#include "modules/hyprland/backend.hpp"
#include "util/rewrite_string.hpp"
#include "util/sanitize_str.hpp"

#include <shared_mutex>
#include <thread>

namespace waybar::modules::hyprland {

std::shared_mutex windowIpcSmtx;

Window::Window(const std::string& id, const Bar& bar, const Json::Value& config)
: AAppIconLabel(config, "window", id, "{title}", 0, true), bar_(bar) {

std::unique_lock<std::shared_mutex> windowIpcUniqueLock(windowIpcSmtx);

modulesReady = true;
Expand Down Expand Up @@ -51,7 +49,6 @@ Window::~Window() {
}

auto Window::update() -> void {

std::shared_lock<std::shared_mutex> windowIpcShareLock(windowIpcSmtx);

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

void Window::queryActiveWorkspace() {

std::shared_lock<std::shared_mutex> windowIpcShareLock(windowIpcSmtx);

if (separateOutputs_) {
Expand Down
2 changes: 1 addition & 1 deletion src/util/pipewire/pipewire_backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ void PipewireBackend::handleRegistryEventGlobal(uint32_t id, uint32_t permission
if (proxy == nullptr) return;

auto *pNodeInfo = (PrivacyNodeInfo *)pw_proxy_get_user_data(proxy);
new(pNodeInfo) PrivacyNodeInfo{};
new (pNodeInfo) PrivacyNodeInfo{};
pNodeInfo->id = id;
pNodeInfo->data = this;
pNodeInfo->type = mediaType;
Expand Down

0 comments on commit c398ea3

Please sign in to comment.