sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 953d6880c7f534b1e333fd00d32aceea63d0eda5
parent 7c166e350bf5081f5e5895f588be531d4281634d
Author: Drew DeVault <sir@cmpwn.com>
Date:   Mon, 12 Sep 2016 14:41:07 +0900

Merge pull request #896 from thejan2009/bugfix/swaybar-whitespace-in-ws-name

Put workspace name in quotes (swaybar ipc)
Diffstat:
Mswaybar/ipc.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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); }