Update dwm module after merge 3.7.1 version

This commit is contained in:
Przemek Grondek 2024-02-27 15:46:56 +01:00
parent 6d42ccedd6
commit 09eac08449
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ POLYBAR_NS
namespace modules { namespace modules {
class dwm_module : public event_module<dwm_module> { class dwm_module : public event_module<dwm_module> {
public: public:
explicit dwm_module(const bar_settings&, string); explicit dwm_module(const bar_settings&, string, const config&);
using tag_mask_t = unsigned int; using tag_mask_t = unsigned int;
using window_t = unsigned int; using window_t = unsigned int;

View File

@ -15,7 +15,7 @@ POLYBAR_NS
namespace modules { namespace modules {
template class module<dwm_module>; template class module<dwm_module>;
dwm_module::dwm_module(const bar_settings& bar, string name_) : event_module<dwm_module>(bar, move(name_)) { dwm_module::dwm_module(const bar_settings& bar, string name_, const config& conf) : event_module<dwm_module>(bar, move(name_), conf) {
m_router->register_action_with_data(EVENT_LAYOUT_SET, [this](const std::string& data) { generic_action(EVENT_LAYOUT_SET,data); }); m_router->register_action_with_data(EVENT_LAYOUT_SET, [this](const std::string& data) { generic_action(EVENT_LAYOUT_SET,data); });
m_router->register_action_with_data(EVENT_TAG_VIEW, [this](const std::string& data) { generic_action(EVENT_TAG_VIEW,data);; }); m_router->register_action_with_data(EVENT_TAG_VIEW, [this](const std::string& data) { generic_action(EVENT_TAG_VIEW,data);; });
m_router->register_action_with_data(EVENT_TAG_TOGGLE_VIEW, [this](const std::string& data) { generic_action(EVENT_TAG_TOGGLE_VIEW,data); }); m_router->register_action_with_data(EVENT_TAG_TOGGLE_VIEW, [this](const std::string& data) { generic_action(EVENT_TAG_TOGGLE_VIEW,data); });