mirror of
https://github.com/labwc/labwc.git
synced 2026-04-12 08:21:13 -04:00
Update rcxml.c
minor change to eliminate unneeded variable.
This commit is contained in:
parent
0329d24abd
commit
105cdb9a9b
1 changed files with 3 additions and 4 deletions
|
|
@ -1467,14 +1467,13 @@ post_processing(void)
|
|||
|
||||
int nr_workspaces = wl_list_length(&rc.workspace_config.workspaces);
|
||||
if (nr_workspaces < rc.workspace_config.min_nr_workspaces) {
|
||||
char *ws_name = xstrdup("Workspace");
|
||||
if (rc.workspace_config.prefix) {
|
||||
ws_name = rc.workspace_config.prefix;
|
||||
if (!rc.workspace_config.prefix) {
|
||||
rc.workspace_config.prefix= xstrdup("Workspace");
|
||||
}
|
||||
struct workspace *workspace;
|
||||
for (int i = nr_workspaces; i < rc.workspace_config.min_nr_workspaces; i++) {
|
||||
workspace = znew(*workspace);
|
||||
workspace->name = strdup_printf("%s %d", ws_name, i + 1);
|
||||
workspace->name = strdup_printf("%s %d", rc.workspace_config.prefix, i + 1);
|
||||
wl_list_append(&rc.workspace_config.workspaces, &workspace->link);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue