mirror of
				https://github.com/rad4day/Waybar.git
				synced 2025-11-04 09:42:42 +01:00 
			
		
		
		
	Rename the "disable-workspace-scroll" option to "disable-bar-scroll"
This commit is contained in:
		@@ -15,7 +15,7 @@ Workspaces::Workspaces(const std::string &id, const Bar &bar, const Json::Value
 | 
			
		||||
  ipc_.signal_event.connect(sigc::mem_fun(*this, &Workspaces::onEvent));
 | 
			
		||||
  ipc_.signal_cmd.connect(sigc::mem_fun(*this, &Workspaces::onCmd));
 | 
			
		||||
  ipc_.sendCmd(IPC_GET_WORKSPACES);
 | 
			
		||||
  if (!config["disable-workspace-scroll"].asBool()) {
 | 
			
		||||
  if (!config["disable-bar-scroll"].asBool()) {
 | 
			
		||||
    auto &window = const_cast<Bar&>(bar_).window;
 | 
			
		||||
    window.add_events(Gdk::SCROLL_MASK | Gdk::SMOOTH_SCROLL_MASK);
 | 
			
		||||
    window.signal_scroll_event().connect(sigc::mem_fun(*this, &Workspaces::handleScroll));
 | 
			
		||||
@@ -250,4 +250,4 @@ void Workspaces::onButtonReady(const Json::Value &node, Gtk::Button &button) {
 | 
			
		||||
 | 
			
		||||
Workspaces::operator Gtk::Widget &() { return box_; }
 | 
			
		||||
 | 
			
		||||
}  // namespace waybar::modules::sway
 | 
			
		||||
}  // namespace waybar::modules::sway
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user