From c239f228c23a0a75c5b414e797c0339c30c338b1 Mon Sep 17 00:00:00 2001 From: "D.B" Date: Mon, 12 Sep 2016 06:49:27 +0200 Subject: swaybar sends workspace name in quotes fixes #894 --- swaybar/ipc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swaybar/ipc.c b/swaybar/ipc.c index 8d62d223..bce9dc79 100644 --- a/swaybar/ipc.c +++ b/swaybar/ipc.c @@ -7,10 +7,10 @@ #include "log.h" void ipc_send_workspace_command(const char *workspace_name) { - uint32_t size = strlen("workspace ") + strlen(workspace_name) + 1; + uint32_t size = strlen("workspace \"\"") + strlen(workspace_name) + 1; char command[size]; - sprintf(command, "workspace %s", workspace_name); + sprintf(command, "workspace \"%s\"", workspace_name); ipc_single_command(swaybar.ipc_socketfd, IPC_COMMAND, command, &size); } -- cgit v1.2.3-54-g00ecf