summaryrefslogtreecommitdiffstats
path: root/swaybar/ipc.c
diff options
context:
space:
mode:
Diffstat (limited to 'swaybar/ipc.c')
-rw-r--r--swaybar/ipc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/swaybar/ipc.c b/swaybar/ipc.c
index a67814c1..84046ab5 100644
--- a/swaybar/ipc.c
+++ b/swaybar/ipc.c
@@ -345,10 +345,10 @@ void ipc_execute_binding(struct swaybar *bar, struct swaybar_binding *bind) {
345 IPC_COMMAND, bind->command, &len)); 345 IPC_COMMAND, bind->command, &len));
346} 346}
347 347
348bool ipc_initialize(struct swaybar *bar, const char *bar_id) { 348bool ipc_initialize(struct swaybar *bar) {
349 uint32_t len = strlen(bar_id); 349 uint32_t len = strlen(bar->id);
350 char *res = ipc_single_command(bar->ipc_socketfd, 350 char *res = ipc_single_command(bar->ipc_socketfd,
351 IPC_GET_BAR_CONFIG, bar_id, &len); 351 IPC_GET_BAR_CONFIG, bar->id, &len);
352 if (!ipc_parse_config(bar->config, res)) { 352 if (!ipc_parse_config(bar->config, res)) {
353 free(res); 353 free(res);
354 return false; 354 return false;