diff --git a/include/AModule.hpp b/include/AModule.hpp index 841b8d6e..f7cc484e 100644 --- a/include/AModule.hpp +++ b/include/AModule.hpp @@ -26,7 +26,6 @@ class AModule : public IModule { const Json::Value &config_; Gtk::EventBox event_box_; - std::string click_param_; virtual bool handleToggle(GdkEventButton *const &ev); virtual bool handleScroll(GdkEventScroll *); diff --git a/src/AModule.cpp b/src/AModule.cpp index 38e97850..354d1bf9 100644 --- a/src/AModule.cpp +++ b/src/AModule.cpp @@ -46,7 +46,7 @@ bool AModule::handleToggle(GdkEventButton* const& e) { format = config_["on-click-forward"].asString(); } if (!format.empty()) { - pid_.push_back(util::command::forkExec(fmt::format(format, fmt::arg("arg", click_param_)))); + pid_.push_back(util::command::forkExec(format)); } dp.emit(); return true;