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.
This commit is contained in:
Mikkel Oscar Lyderik 2016-01-11 03:13:36 +01:00
parent 46992d6060
commit 222f0d44fc
2 changed files with 7 additions and 2 deletions

View file

@ -50,6 +50,7 @@ char *workspace_next_name(void) {
if (strcmp("workspace", cmd) == 0 && name) {
sway_log(L_DEBUG, "Got valid workspace command for target: '%s'", name);
char *_target = strdup(name);
strip_quotes(_target);
while (isspace(*_target))
_target++;