diff --git a/include/modules/clock.hpp b/include/modules/clock.hpp index 0fcd0af..3aa5c9b 100644 --- a/include/modules/clock.hpp +++ b/include/modules/clock.hpp @@ -59,10 +59,8 @@ class Clock final : public ALabel { std::string cldMonCached_{}; date::day cldBaseDay_{0}; /*Calendar functions*/ - auto get_calendar(const date::year_month_day& today, - const date::year_month_day& ymd, - const date::time_zone* tz) - -> const std::string; + auto get_calendar(const date::year_month_day& today, const date::year_month_day& ymd, + const date::time_zone* tz) -> const std::string; /*Clock actions*/ void cldModeSwitch(); void cldShift_up(); diff --git a/src/AModule.cpp b/src/AModule.cpp index 5a8fcd0..b405fed 100644 --- a/src/AModule.cpp +++ b/src/AModule.cpp @@ -28,11 +28,11 @@ AModule::AModule(const Json::Value& config, const std::string& name, const std:: // configure events' user commands - bool hasEvent = std::find_if(eventMap_.cbegin(), eventMap_.cend(), - [&config](const auto& eventEntry) { - return config[eventEntry.second].isString(); - }) != eventMap_.cend(); - + bool hasEvent = + std::find_if(eventMap_.cbegin(), eventMap_.cend(), [&config](const auto& eventEntry) { + return config[eventEntry.second].isString(); + }) != eventMap_.cend(); + if (enable_click || hasEvent) { event_box_.add_events(Gdk::BUTTON_PRESS_MASK); event_box_.signal_button_press_event().connect(sigc::mem_fun(*this, &AModule::handleToggle));