Bugfix: Don’t display unnamed workspaces with %d: (Thanks Mirko)

This commit is contained in:
Michael Stapelberg 2009-08-29 11:06:34 +02:00
parent d333b8534d
commit 2b49c6086d
1 changed files with 2 additions and 2 deletions

View 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;
}