mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
osd: support full app_id in window switcher (#1309)
Support showing full application identifier or the trimmed variant in window switcher OSD. Regression notice: For anyone using ‘identifier’ in window-switcher field configuration, change it to ‘trimmed_identifier’.
This commit is contained in:
parent
ccd4ab943e
commit
d2d469133f
5 changed files with 24 additions and 2 deletions
|
|
@ -198,6 +198,8 @@ fill_window_switcher_field(char *nodename, char *content)
|
|||
} else if (!strcmp(content, "app_id")) {
|
||||
wlr_log(WLR_ERROR, "window-switcher field 'app_id' is deprecated");
|
||||
current_field->content = LAB_FIELD_IDENTIFIER;
|
||||
} else if (!strcmp(content, "trimmed_identifier")) {
|
||||
current_field->content = LAB_FIELD_TRIMMED_IDENTIFIER;
|
||||
} else if (!strcmp(content, "title")) {
|
||||
current_field->content = LAB_FIELD_TITLE;
|
||||
} else {
|
||||
|
|
@ -1228,7 +1230,7 @@ static struct {
|
|||
int width;
|
||||
} fields[] = {
|
||||
{ LAB_FIELD_TYPE, 25 },
|
||||
{ LAB_FIELD_IDENTIFIER, 25 },
|
||||
{ LAB_FIELD_TRIMMED_IDENTIFIER, 25 },
|
||||
{ LAB_FIELD_TITLE, 50 },
|
||||
{ LAB_FIELD_NONE, 0 },
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue