diff options
Diffstat (limited to 'swaybar/ipc.c')
-rw-r--r-- | swaybar/ipc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/swaybar/ipc.c b/swaybar/ipc.c index 8d2f4e9a..f2da7392 100644 --- a/swaybar/ipc.c +++ b/swaybar/ipc.c | |||
@@ -331,6 +331,9 @@ void ipc_bar_init(struct bar *bar, const char *bar_id) { | |||
331 | 331 | ||
332 | bool handle_ipc_event(struct bar *bar) { | 332 | bool handle_ipc_event(struct bar *bar) { |
333 | struct ipc_response *resp = ipc_recv_response(bar->ipc_event_socketfd); | 333 | struct ipc_response *resp = ipc_recv_response(bar->ipc_event_socketfd); |
334 | if (!resp) { | ||
335 | return false; | ||
336 | } | ||
334 | switch (resp->type) { | 337 | switch (resp->type) { |
335 | case IPC_EVENT_WORKSPACE: | 338 | case IPC_EVENT_WORKSPACE: |
336 | ipc_update_workspaces(bar); | 339 | ipc_update_workspaces(bar); |