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 {
|
} else {
|
||||||
// configuration update
|
// configuration update
|
||||||
auto config = parseConfig(payload);
|
auto config = parseConfig(payload);
|
||||||
signal_config_(config);
|
signal_config_(std::move(config));
|
||||||
}
|
}
|
||||||
} catch (const std::exception& e) {
|
} catch (const std::exception& e) {
|
||||||
spdlog::error("BarIpcClient::onEvent {}", e.what());
|
spdlog::error("BarIpcClient::onEvent {}", e.what());
|
||||||
|
|
Loading…
Reference in New Issue