Bugfix: Don’t display unnamed workspaces with %d: (Thanks Mirko)
This commit is contained in:
parent
7aec1bd1ef
commit
d089adc229
@ -377,7 +377,6 @@ void load_configuration(xcb_connection_t *conn, const char *override_configpath,
|
|||||||
workspaces[ws_num - 1].preferred_screen = screen;
|
workspaces[ws_num - 1].preferred_screen = screen;
|
||||||
|
|
||||||
name += strlen("screen ") + strlen(screen);
|
name += strlen("screen ") + strlen(screen);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Strip leading whitespace */
|
/* Strip leading whitespace */
|
||||||
@ -393,6 +392,7 @@ void load_configuration(xcb_connection_t *conn, const char *override_configpath,
|
|||||||
|
|
||||||
LOG("setting name to \"%s\"\n", name);
|
LOG("setting name to \"%s\"\n", name);
|
||||||
|
|
||||||
|
if (*name != '\0')
|
||||||
workspace_set_name(&(workspaces[ws_num - 1]), name);
|
workspace_set_name(&(workspaces[ws_num - 1]), name);
|
||||||
free(ws_str);
|
free(ws_str);
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user