config: s/app_id/identifier/ for window-switcher field

...to be consistent with window rules.

The use of 'app_id' for window-switcher fields is hereby deprecated.
This commit is contained in:
Johan Malm 2023-08-20 20:24:46 +01:00 committed by Johan Malm
parent e5a6c57a6e
commit 206db43786
5 changed files with 14 additions and 6 deletions

View file

@ -183,8 +183,11 @@ fill_window_switcher_field(char *nodename, char *content)
} else if (!strcmp(nodename, "content")) {
if (!strcmp(content, "type")) {
current_field->content = LAB_FIELD_TYPE;
} else if (!strcmp(content, "identifier")) {
current_field->content = LAB_FIELD_IDENTIFIER;
} else if (!strcmp(content, "app_id")) {
current_field->content = LAB_FIELD_APP_ID;
wlr_log(WLR_ERROR, "window-switcher field 'app_id' is deprecated");
current_field->content = LAB_FIELD_IDENTIFIER;
} else if (!strcmp(content, "title")) {
current_field->content = LAB_FIELD_TITLE;
} else {
@ -1054,7 +1057,7 @@ static struct {
int width;
} fields[] = {
{ LAB_FIELD_TYPE, 25 },
{ LAB_FIELD_APP_ID, 25 },
{ LAB_FIELD_IDENTIFIER, 25 },
{ LAB_FIELD_TITLE, 50 },
{ LAB_FIELD_NONE, 0 },
};