aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2016-09-12 14:41:07 +0900
committerGitHub <noreply@github.com>2016-09-12 14:41:07 +0900
commit953d6880c7f534b1e333fd00d32aceea63d0eda5 (patch)
tree79262e214a59d4ac1e64767006d69b17cfc05ceb
parent7c166e350bf5081f5e5895f588be531d4281634d (diff)
parentc239f228c23a0a75c5b414e797c0339c30c338b1 (diff)
Merge pull request #896 from thejan2009/bugfix/swaybar-whitespace-in-ws-name
Put workspace name in quotes (swaybar ipc)
-rw-r--r--swaybar/ipc.c4
1 files 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);
}