From 9c0c0d262e8654677fd759ae6c00a448d3953c99 Mon Sep 17 00:00:00 2001 From: Jonas Date: Mon, 4 Mar 2019 15:00:44 -0500 Subject: [PATCH] Using "inclusive or" for format-alt-click and other click events c.f. https://github.com/Alexays/Waybar/pull/204#discussion_r262009635 Co-Authored-By: Organic-Code --- src/ALabel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ALabel.cpp b/src/ALabel.cpp index 87f93fab..f6da6b57 100644 --- a/src/ALabel.cpp +++ b/src/ALabel.cpp @@ -50,7 +50,8 @@ bool waybar::ALabel::handleToggle(GdkEventButton* const& e) { waybar::util::command::forkExec(config_["on-click-forward"].asString()); - } else if (config_["format-alt-click"].isUInt() && e->button == config_["format-alt-click"].asUInt()) { + } + if (config_["format-alt-click"].isUInt() && e->button == config_["format-alt-click"].asUInt()) { alt_ = !alt_; if (alt_ && config_["format-alt"].isString()) { format_ = config_["format-alt"].asString();