]> 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:09:23 +0000 (11:09 +0200)
src/config.c

index bc7edeab408080bc34b6683f229d98cef75a3b75..615ee3f59ecc43cacd5c44bb67e261cfb07971df 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;
                 }