summaryrefslogtreecommitdiffstats
path: root/sway/workspace.c
diff options
context:
space:
mode:
authorLibravatar Mikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-01-11 03:13:36 +0100
committerLibravatar Mikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-01-11 03:13:36 +0100
commit222f0d44fcda494dca4d5278493a3082068743de (patch)
treeb49ff12800562bd4fa12e4e4e08b8c75d89b43c9 /sway/workspace.c
parentMerge pull request #443 from mikkeloscar/binding-event-input_code (diff)
downloadsway-222f0d44fcda494dca4d5278493a3082068743de.tar.gz
sway-222f0d44fcda494dca4d5278493a3082068743de.tar.zst
sway-222f0d44fcda494dca4d5278493a3082068743de.zip
Strip quotes from workspace name.
Fix #444 This is a temporary fix, the real fix is to store the commands as a formatted argv array, so they don't have to be reformatted all over the place.
Diffstat (limited to 'sway/workspace.c')
-rw-r--r--sway/workspace.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/workspace.c b/sway/workspace.c
index f7523b79..ad989de9 100644
--- a/sway/workspace.c
+++ b/sway/workspace.c
@@ -50,6 +50,7 @@ char *workspace_next_name(void) {
50 if (strcmp("workspace", cmd) == 0 && name) { 50 if (strcmp("workspace", cmd) == 0 && name) {
51 sway_log(L_DEBUG, "Got valid workspace command for target: '%s'", name); 51 sway_log(L_DEBUG, "Got valid workspace command for target: '%s'", name);
52 char *_target = strdup(name); 52 char *_target = strdup(name);
53 strip_quotes(_target);
53 while (isspace(*_target)) 54 while (isspace(*_target))
54 _target++; 55 _target++;
55 56