fix(swaybar-ipc): avoid unnecessary copy of struct swaybar_config
This commit is contained in:
parent
4b5dc1bb3a
commit
cf5ddb2a5e
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue