From 1e871b235371e7f84635022f0574642ebf03c4d2 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 2 May 2019 16:46:53 +0200 Subject: [PATCH] refactor: propagate the event further --- src/ALabel.cpp | 2 +- src/modules/idle_inhibitor.cpp | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/ALabel.cpp b/src/ALabel.cpp index aaf3a3f6..5e90ce73 100644 --- a/src/ALabel.cpp +++ b/src/ALabel.cpp @@ -71,7 +71,7 @@ bool waybar::ALabel::handleToggle(GdkEventButton* const& e) { } dp.emit(); - return true; + return false; } bool waybar::ALabel::handleScroll(GdkEventScroll* e) { diff --git a/src/modules/idle_inhibitor.cpp b/src/modules/idle_inhibitor.cpp index afade55f..7f745709 100644 --- a/src/modules/idle_inhibitor.cpp +++ b/src/modules/idle_inhibitor.cpp @@ -50,13 +50,10 @@ bool waybar::modules::IdleInhibitor::handleToggle(GdkEventButton* const& e) { waybar::Client::inst()->idle_inhibit_manager, bar_.surface); status_ = "activated"; } - if (config_["on-click"].isString() && e->button == 1) { - pid_ = waybar::util::command::forkExec(config_["on-click"].asString()); - } } else { ALabel::handleToggle(e); } dp.emit(); - return true; + return false; }