mirror of
https://github.com/labwc/labwc.git
synced 2026-04-06 07:15:40 -04:00
workspaces: changed 'primary_name' to 'initial_name'
This commit is contained in:
parent
5f83760a34
commit
c628c67ecf
1 changed files with 4 additions and 4 deletions
|
|
@ -422,17 +422,17 @@ workspaces_init(struct server *server)
|
|||
* After adding workspaces, check if there is an initial workspace
|
||||
* selected and set that as the initial workspace.
|
||||
*/
|
||||
char *primary_name = rc.workspace_config.initial_workspace_name;
|
||||
char *initial_name = rc.workspace_config.initial_workspace_name;
|
||||
struct workspace *initial = NULL;
|
||||
struct workspace *first = wl_container_of(
|
||||
server->workspaces.all.next, first, link);
|
||||
|
||||
if (primary_name) {
|
||||
initial = workspace_find_by_name(server, primary_name);
|
||||
if (initial_name) {
|
||||
initial = workspace_find_by_name(server, initial_name);
|
||||
if (!initial) {
|
||||
wlr_log(WLR_ERROR,
|
||||
"Initial workspace '%s' not found. Falling back to default",
|
||||
primary_name);
|
||||
initial_name);
|
||||
}
|
||||
}
|
||||
if (!initial) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue