From 8e93fd3ae0fc873d7525532b953ee515a400d814 Mon Sep 17 00:00:00 2001 From: Alexis Date: Thu, 29 Nov 2018 09:50:00 +0100 Subject: [PATCH] revert: Update to new Sway IPC protocol --- src/modules/sway/ipc/client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/sway/ipc/client.cpp b/src/modules/sway/ipc/client.cpp index 567df09a..85f7c656 100644 --- a/src/modules/sway/ipc/client.cpp +++ b/src/modules/sway/ipc/client.cpp @@ -122,7 +122,7 @@ struct waybar::modules::sway::Ipc::ipc_response void waybar::modules::sway::Ipc::subscribe(const std::string& payload) const { 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"); } }