diff options
author | 2018-04-10 16:33:52 -0400 | |
---|---|---|
committer | 2018-04-10 16:33:52 -0400 | |
commit | 23df5b637ef7fc13e52f11bd6def23906c3828d4 (patch) | |
tree | c6277bad5fe3cf71c7c52d58dc769e9a4c2a0512 /swaybar/ipc.c | |
parent | Merge pull request #1791 from RyanDwyer/fix-swaybar-output-config (diff) | |
parent | fix swaybar ipc handling (diff) | |
download | sway-23df5b637ef7fc13e52f11bd6def23906c3828d4.tar.gz sway-23df5b637ef7fc13e52f11bd6def23906c3828d4.tar.zst sway-23df5b637ef7fc13e52f11bd6def23906c3828d4.zip |
Merge pull request #1794 from thejan2009/swaybar-ipc-mode-fix
fix swaybar ipc handling
Diffstat (limited to 'swaybar/ipc.c')
-rw-r--r-- | swaybar/ipc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/swaybar/ipc.c b/swaybar/ipc.c index e6231bd2..ed5d9a31 100644 --- a/swaybar/ipc.c +++ b/swaybar/ipc.c | |||
@@ -331,7 +331,7 @@ bool handle_ipc_readable(struct swaybar *bar) { | |||
331 | switch (resp->type) { | 331 | switch (resp->type) { |
332 | case IPC_EVENT_WORKSPACE: | 332 | case IPC_EVENT_WORKSPACE: |
333 | ipc_get_workspaces(bar); | 333 | ipc_get_workspaces(bar); |
334 | return true; | 334 | break; |
335 | case IPC_EVENT_MODE: { | 335 | case IPC_EVENT_MODE: { |
336 | json_object *result = json_tokener_parse(resp->payload); | 336 | json_object *result = json_tokener_parse(resp->payload); |
337 | if (!result) { | 337 | if (!result) { |
@@ -367,5 +367,5 @@ bool handle_ipc_readable(struct swaybar *bar) { | |||
367 | return false; | 367 | return false; |
368 | } | 368 | } |
369 | free_ipc_response(resp); | 369 | free_ipc_response(resp); |
370 | return false; | 370 | return true; |
371 | } | 371 | } |