mirror of
				https://github.com/rad4day/Waybar.git
				synced 2025-10-30 23:42:42 +01:00 
			
		
		
		
	refactor: propagate the event further
This commit is contained in:
		| @@ -71,7 +71,7 @@ bool waybar::ALabel::handleToggle(GdkEventButton* const& e) { | ||||
|   } | ||||
|  | ||||
|   dp.emit(); | ||||
|   return true; | ||||
|   return false; | ||||
| } | ||||
|  | ||||
| bool waybar::ALabel::handleScroll(GdkEventScroll* e) { | ||||
|   | ||||
| @@ -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; | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Alex
					Alex