mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
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 <Lazarelucas@yahoo.fr>
This commit is contained in:
parent
d0f56b7bdd
commit
9c0c0d262e
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user