]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Don’t display unnamed workspaces with %d: (Thanks Mirko)
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 29 Aug 2009 09:06:34 +0000 (11:06 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 29 Aug 2009 09:06:34 +0000 (11:06 +0200)
src/config.c

index a5f635dc5920eaf4c6a07591078cd5d39e5e9c6d..2e9ff5f69842482b75451af0f4c319989aa3393c 100644 (file)
@@ -377,7 +377,6 @@ void load_configuration(xcb_connection_t *conn, const char *override_configpath,
                                 workspaces[ws_num - 1].preferred_screen = screen;
 
                                 name += strlen("screen ") + strlen(screen);
-
                         }
 
                         /* Strip leading whitespace */
@@ -393,7 +392,8 @@ void load_configuration(xcb_connection_t *conn, const char *override_configpath,
 
                         LOG("setting name to \"%s\"\n", name);
 
-                        workspace_set_name(&(workspaces[ws_num - 1]), name);
+                        if (*name != '\0')
+                                workspace_set_name(&(workspaces[ws_num - 1]), name);
                         free(ws_str);
                         continue;
                 }