]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Ignore spaces in front of default workspace name
authorEika Enge <eika-enge@outlook.com>
Sun, 26 May 2013 11:24:55 +0000 (18:24 +0700)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 29 Jun 2013 18:58:15 +0000 (20:58 +0200)
src/workspace.c

index 5a0913bfcc77852c1084fe2f2908097000714b8c..2c26b0ea6d840f7a86fb8ffec9e573ce8c3f29ad 100644 (file)
@@ -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",