From: Eika Enge Date: Sun, 26 May 2013 11:24:55 +0000 (+0700) Subject: Bugfix: Ignore spaces in front of default workspace name X-Git-Tag: 4.6~11^2^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=625d5bdba6318377baa716ad5ea5a0b2f85b1c0e;p=i3%2Fi3 Bugfix: Ignore spaces in front of default workspace name --- diff --git a/src/workspace.c b/src/workspace.c index 5a0913bf..2c26b0ea 100644 --- a/src/workspace.c +++ b/src/workspace.c @@ -128,6 +128,8 @@ Con *create_workspace_on_output(Output *output, Con *content) { continue; DLOG("relevant command = %s\n", bind->command); char *target = bind->command + strlen("workspace "); + while((*target == ' ' || *target == '\t') && target != '\0') + target++; /* We check if this is the workspace * next/prev/next_on_output/prev_on_output/back_and_forth/number command. * Beware: The workspace names "next", "prev", "next_on_output",