mirror of
				https://github.com/rad4day/Waybar.git
				synced 2025-11-04 09:42:42 +01:00 
			
		
		
		
	fix(swaybar-ipc): avoid unnecessary copy of struct swaybar_config
This commit is contained in:
		@@ -71,7 +71,7 @@ void BarIpcClient::onIpcEvent(const struct Ipc::ipc_response& res) {
 | 
			
		||||
    } else {
 | 
			
		||||
      // configuration update
 | 
			
		||||
      auto config = parseConfig(payload);
 | 
			
		||||
      signal_config_(config);
 | 
			
		||||
      signal_config_(std::move(config));
 | 
			
		||||
    }
 | 
			
		||||
  } catch (const std::exception& e) {
 | 
			
		||||
    spdlog::error("BarIpcClient::onEvent {}", e.what());
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user