mirror of
				https://github.com/rad4day/Waybar.git
				synced 2025-10-31 16:02:43 +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:
		| @@ -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(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jonas
					Jonas