workspaces: add config option for initial workspace selection
Some checks failed
labwc.github.io / notify (push) Has been cancelled

This commit is contained in:
Cameron Scott McCreery 2025-12-22 16:17:43 -05:00 committed by GitHub
parent c9b088e343
commit 64aec6ff5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 64 additions and 29 deletions

View file

@ -1308,6 +1308,8 @@ entry(xmlNode *node, char *nodename, char *content)
wl_list_append(&rc.workspace_config.workspaces, &workspace->link);
} else if (!strcasecmp(nodename, "popupTime.desktops")) {
rc.workspace_config.popuptime = atoi(content);
} else if (!strcasecmp(nodename, "initial.desktops")) {
xstrdup_replace(rc.workspace_config.initial_workspace_name, content);
} else if (!strcasecmp(nodename, "number.desktops")) {
rc.workspace_config.min_nr_workspaces = MAX(1, atoi(content));
} else if (!strcasecmp(nodename, "popupShow.resize")) {
@ -1963,6 +1965,7 @@ rcxml_finish(void)
zfree(rc.icon_theme_name);
zfree(rc.fallback_app_icon_name);
zfree(rc.workspace_config.prefix);
zfree(rc.workspace_config.initial_workspace_name);
zfree(rc.tablet.output_name);
zfree(rc.window_switcher.osd.thumbnail_label_format);