revert: Update to new Sway IPC protocol
This commit is contained in:
parent
37c7e586d6
commit
8e93fd3ae0
|
@ -122,7 +122,7 @@ struct waybar::modules::sway::Ipc::ipc_response
|
||||||
void waybar::modules::sway::Ipc::subscribe(const std::string& payload) const
|
void waybar::modules::sway::Ipc::subscribe(const std::string& payload) const
|
||||||
{
|
{
|
||||||
auto res = send(fd_event_, IPC_SUBSCRIBE, payload);
|
auto res = send(fd_event_, IPC_SUBSCRIBE, payload);
|
||||||
if (res.payload != "{\"success\": true}" && res.payload != "[{\"success\": true}]") {
|
if (res.payload != "{\"success\": true}") {
|
||||||
throw std::runtime_error("Unable to subscribe ipc event");
|
throw std::runtime_error("Unable to subscribe ipc event");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue