fix: lint
This commit is contained in:
parent
32e241dc47
commit
19f3ce6f85
|
@ -6,8 +6,8 @@
|
||||||
|
|
||||||
#include "AAppIconLabel.hpp"
|
#include "AAppIconLabel.hpp"
|
||||||
#include "bar.hpp"
|
#include "bar.hpp"
|
||||||
#include "util/json.hpp"
|
|
||||||
#include "dwl-ipc-unstable-v2-client-protocol.h"
|
#include "dwl-ipc-unstable-v2-client-protocol.h"
|
||||||
|
#include "util/json.hpp"
|
||||||
|
|
||||||
namespace waybar::modules::dwl {
|
namespace waybar::modules::dwl {
|
||||||
|
|
||||||
|
@ -23,6 +23,7 @@ class Window : public AAppIconLabel, public sigc::trackable {
|
||||||
void handle_frame();
|
void handle_frame();
|
||||||
|
|
||||||
struct zdwl_ipc_manager_v2 *status_manager_;
|
struct zdwl_ipc_manager_v2 *status_manager_;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
const Bar &bar_;
|
const Bar &bar_;
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
|
|
||||||
#include "client.hpp"
|
#include "client.hpp"
|
||||||
#include "dwl-ipc-unstable-v2-client-protocol.h"
|
#include "dwl-ipc-unstable-v2-client-protocol.h"
|
||||||
|
|
||||||
#include "util/rewrite_string.hpp"
|
#include "util/rewrite_string.hpp"
|
||||||
|
|
||||||
namespace waybar::modules::dwl {
|
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_);
|
zdwl_ipc_manager_v2_destroy(status_manager_);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Window::handle_title(const char *title) {
|
void Window::handle_title(const char *title) { title_ = title; }
|
||||||
title_ = title;
|
|
||||||
}
|
|
||||||
|
|
||||||
void Window::handle_appid(const char *appid) {
|
void Window::handle_appid(const char *appid) { appid_ = appid; }
|
||||||
appid_ = appid;
|
|
||||||
}
|
|
||||||
|
|
||||||
void Window::handle_layout_symbol(const char *layout_symbol) {
|
void Window::handle_layout_symbol(const char *layout_symbol) { layout_symbol_ = layout_symbol; }
|
||||||
layout_symbol_ = layout_symbol;
|
|
||||||
}
|
|
||||||
|
|
||||||
void Window::handle_layout(const uint32_t layout) {
|
void Window::handle_layout(const uint32_t layout) { layout_ = layout; }
|
||||||
layout_ = layout;
|
|
||||||
}
|
|
||||||
|
|
||||||
void Window::handle_frame() {
|
void Window::handle_frame() {
|
||||||
label_.set_markup(waybar::util::rewriteString(
|
label_.set_markup(waybar::util::rewriteString(
|
||||||
fmt::format(
|
fmt::format(fmt::runtime(format_), fmt::arg("title", title_),
|
||||||
fmt::runtime(format_),
|
fmt::arg("layout", layout_symbol_), fmt::arg("app_id", appid_)),
|
||||||
fmt::arg("title", title_),
|
|
||||||
fmt::arg("layout", layout_symbol_),
|
|
||||||
fmt::arg("app_id", appid_)),
|
|
||||||
config_["rewrite"]));
|
config_["rewrite"]));
|
||||||
updateAppIconName(appid_, "");
|
updateAppIconName(appid_, "");
|
||||||
updateAppIcon();
|
updateAppIcon();
|
||||||
|
|
Loading…
Reference in New Issue