diff --git a/include/modules/dwm.hpp b/include/modules/dwm.hpp index f5f65567..70ca8a81 100644 --- a/include/modules/dwm.hpp +++ b/include/modules/dwm.hpp @@ -10,7 +10,7 @@ POLYBAR_NS namespace modules { class dwm_module : public event_module { public: - explicit dwm_module(const bar_settings&, string); + explicit dwm_module(const bar_settings&, string, const config&); using tag_mask_t = unsigned int; using window_t = unsigned int; diff --git a/src/modules/dwm.cpp b/src/modules/dwm.cpp index 7db310b3..4eea926c 100644 --- a/src/modules/dwm.cpp +++ b/src/modules/dwm.cpp @@ -15,7 +15,7 @@ POLYBAR_NS namespace modules { template class module; - dwm_module::dwm_module(const bar_settings& bar, string name_) : event_module(bar, move(name_)) { + dwm_module::dwm_module(const bar_settings& bar, string name_, const config& conf) : event_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_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); });