From: Michael Stapelberg Date: Sat, 29 Aug 2009 09:06:34 +0000 (+0200) Subject: Bugfix: Don’t display unnamed workspaces with %d: (Thanks Mirko) X-Git-Tag: 3.d~113 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2b49c6086d9d6a9dabbe8afb161dbc198f56f5fc;p=i3%2Fi3 Bugfix: Don’t display unnamed workspaces with %d: (Thanks Mirko) --- diff --git a/src/config.c b/src/config.c index a5f635dc..2e9ff5f6 100644 --- a/src/config.c +++ b/src/config.c @@ -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; }