mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
make the linter happy
This commit is contained in:
parent
123ed36739
commit
e2e59a52df
@ -100,8 +100,7 @@ void IPC::parseIPC(const std::string& ev) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void IPC::registerForIPC(const std::string& ev,
|
void IPC::registerForIPC(const std::string& ev, std::function<void(const std::string&)> fn) {
|
||||||
std::function<void(const std::string&)> fn) {
|
|
||||||
callbackMutex.lock();
|
callbackMutex.lock();
|
||||||
|
|
||||||
callbacks.emplace_back(std::make_pair(ev, fn));
|
callbacks.emplace_back(std::make_pair(ev, fn));
|
||||||
@ -169,4 +168,4 @@ std::string IPC::getSocket1Reply(const std::string& rq) {
|
|||||||
return std::string(buffer);
|
return std::string(buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
} // namespace waybar::modules::hyprland
|
@ -1,8 +1,9 @@
|
|||||||
#include "modules/hyprland/backend.hpp"
|
|
||||||
#include "modules/hyprland/window.hpp"
|
#include "modules/hyprland/window.hpp"
|
||||||
|
|
||||||
#include <spdlog/spdlog.h>
|
#include <spdlog/spdlog.h>
|
||||||
|
|
||||||
|
#include "modules/hyprland/backend.hpp"
|
||||||
|
|
||||||
namespace waybar::modules::hyprland {
|
namespace waybar::modules::hyprland {
|
||||||
|
|
||||||
Window::Window(const std::string& id, const Bar& bar, const Json::Value& config)
|
Window::Window(const std::string& id, const Bar& bar, const Json::Value& config)
|
||||||
@ -58,4 +59,5 @@ void Window::onEvent(const std::string& ev) {
|
|||||||
|
|
||||||
dp.emit();
|
dp.emit();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
} // namespace waybar::modules::hyprland
|
Loading…
Reference in New Issue
Block a user