diff --git a/man/waybar-upower.5.scd b/man/waybar-upower.5.scd index dae974dd..a6ba4df0 100644 --- a/man/waybar-upower.5.scd +++ b/man/waybar-upower.5.scd @@ -47,6 +47,10 @@ compatible devices in the tooltip. default: 4 ++ Defines the spacing between the tooltip window edge and the tooltip content. +*on-click*: ++ + typeof: string ++ + Command to execute when clicked on the module. + # FORMAT REPLACEMENTS *{percentage}*: The battery capacity in percentage diff --git a/src/modules/upower/upower.cpp b/src/modules/upower/upower.cpp index 41fc362b..eb29913e 100644 --- a/src/modules/upower/upower.cpp +++ b/src/modules/upower/upower.cpp @@ -252,8 +252,7 @@ const std::string UPower::getDeviceStatus(UpDeviceState& state) { bool UPower::handleToggle(GdkEventButton* const& event) { std::lock_guard guard(m_Mutex); showAltText = !showAltText; - dp.emit(); - return true; + return AModule::handleToggle(event); } std::string UPower::timeToString(gint64 time) {