diff options
author | 2016-09-12 14:41:07 +0900 | |
---|---|---|
committer | 2016-09-12 14:41:07 +0900 | |
commit | 953d6880c7f534b1e333fd00d32aceea63d0eda5 (patch) | |
tree | 79262e214a59d4ac1e64767006d69b17cfc05ceb /swaybar/ipc.c | |
parent | Merge pull request #889 from thejan2009/bugfix/indicator_border (diff) | |
parent | swaybar sends workspace name in quotes (diff) | |
download | sway-953d6880c7f534b1e333fd00d32aceea63d0eda5.tar.gz sway-953d6880c7f534b1e333fd00d32aceea63d0eda5.tar.zst sway-953d6880c7f534b1e333fd00d32aceea63d0eda5.zip |
Merge pull request #896 from thejan2009/bugfix/swaybar-whitespace-in-ws-name
Put workspace name in quotes (swaybar ipc)
Diffstat (limited to 'swaybar/ipc.c')
-rw-r--r-- | swaybar/ipc.c | 4 |
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 @@ | |||
7 | #include "log.h" | 7 | #include "log.h" |
8 | 8 | ||
9 | void ipc_send_workspace_command(const char *workspace_name) { | 9 | void ipc_send_workspace_command(const char *workspace_name) { |
10 | uint32_t size = strlen("workspace ") + strlen(workspace_name) + 1; | 10 | uint32_t size = strlen("workspace \"\"") + strlen(workspace_name) + 1; |
11 | 11 | ||
12 | char command[size]; | 12 | char command[size]; |
13 | sprintf(command, "workspace %s", workspace_name); | 13 | sprintf(command, "workspace \"%s\"", workspace_name); |
14 | 14 | ||
15 | ipc_single_command(swaybar.ipc_socketfd, IPC_COMMAND, command, &size); | 15 | ipc_single_command(swaybar.ipc_socketfd, IPC_COMMAND, command, &size); |
16 | } | 16 | } |