Merge pull request #485 from Ventto/fix-on-click-options

fix: No need to format string with unused 'arg' named argument (#484)
This commit is contained in:
Alex 2019-10-18 16:18:04 +01:00 committed by GitHub
commit b97ca2ec9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -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 *);

View File

@ -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;