fix: lint

pull/3044/merge
Alex 2024-03-22 23:21:57 +01:00
parent 32e241dc47
commit 19f3ce6f85
2 changed files with 12 additions and 23 deletions

View File

@ -6,8 +6,8 @@
#include "AAppIconLabel.hpp"
#include "bar.hpp"
#include "util/json.hpp"
#include "dwl-ipc-unstable-v2-client-protocol.h"
#include "util/json.hpp"
namespace waybar::modules::dwl {
@ -23,6 +23,7 @@ class Window : public AAppIconLabel, public sigc::trackable {
void handle_frame();
struct zdwl_ipc_manager_v2 *status_manager_;
private:
const Bar &bar_;

View File

@ -9,7 +9,6 @@
#include "client.hpp"
#include "dwl-ipc-unstable-v2-client-protocol.h"
#include "util/rewrite_string.hpp"
namespace waybar::modules::dwl {
@ -92,29 +91,18 @@ Window::Window(const std::string& id, const Bar& bar, const Json::Value& config)
zdwl_ipc_manager_v2_destroy(status_manager_);
}
void Window::handle_title(const char *title) {
title_ = title;
}
void Window::handle_title(const char *title) { title_ = title; }
void Window::handle_appid(const char *appid) {
appid_ = appid;
}
void Window::handle_appid(const char *appid) { appid_ = appid; }
void Window::handle_layout_symbol(const char *layout_symbol) {
layout_symbol_ = layout_symbol;
}
void Window::handle_layout_symbol(const char *layout_symbol) { layout_symbol_ = layout_symbol; }
void Window::handle_layout(const uint32_t layout) {
layout_ = layout;
}
void Window::handle_layout(const uint32_t layout) { layout_ = layout; }
void Window::handle_frame() {
label_.set_markup(waybar::util::rewriteString(
fmt::format(
fmt::runtime(format_),
fmt::arg("title", title_),
fmt::arg("layout", layout_symbol_),
fmt::arg("app_id", appid_)),
fmt::format(fmt::runtime(format_), fmt::arg("title", title_),
fmt::arg("layout", layout_symbol_), fmt::arg("app_id", appid_)),
config_["rewrite"]));
updateAppIconName(appid_, "");
updateAppIcon();