diff options
Diffstat (limited to 'swaybar/main.c')
-rw-r--r-- | swaybar/main.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/swaybar/main.c b/swaybar/main.c index aa761b7d..d534345a 100644 --- a/swaybar/main.c +++ b/swaybar/main.c | |||
@@ -1025,9 +1025,8 @@ void poll_for_update() { | |||
1025 | 1025 | ||
1026 | if (FD_ISSET(ipc_event_socketfd, &readfds)) { | 1026 | if (FD_ISSET(ipc_event_socketfd, &readfds)) { |
1027 | sway_log(L_DEBUG, "Got workspace update."); | 1027 | sway_log(L_DEBUG, "Got workspace update."); |
1028 | uint32_t len; | 1028 | struct ipc_response *resp = ipc_recv_response(ipc_event_socketfd); |
1029 | char *buf = ipc_recv_response(ipc_event_socketfd, &len); | 1029 | free_ipc_response(resp); |
1030 | free(buf); | ||
1031 | ipc_update_workspaces(); | 1030 | ipc_update_workspaces(); |
1032 | dirty = true; | 1031 | dirty = true; |
1033 | } | 1032 | } |