aboutsummaryrefslogtreecommitdiff
path: root/swaybar
diff options
context:
space:
mode:
Diffstat (limited to 'swaybar')
-rw-r--r--swaybar/main.c5
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() {
if (FD_ISSET(ipc_event_socketfd, &readfds)) {
sway_log(L_DEBUG, "Got workspace update.");
- uint32_t len;
- char *buf = ipc_recv_response(ipc_event_socketfd, &len);
- free(buf);
+ struct ipc_response *resp = ipc_recv_response(ipc_event_socketfd);
+ free_ipc_response(resp);
ipc_update_workspaces();
dirty = true;
}