- *type* Show view type ("xdg-shell" or "xwayland")
- - *app_id* Show app_id (class for XWayland)
+ - *identifier* Show identifier (app_id for native Wayland
+ windows and WM_CLASS for XWayland clients)
- *title* Show window title if different to app_id
</font>
</theme>
+ <!--
+ Just as for window-rules, 'identifier' relates to app_id for native Wayland
+ windows and WM_CLASS for XWayland clients.
+ -->
<windowSwitcher show="yes" preview="yes" outlines="yes">
<fields>
<field content="type" width="25%" />
- <field content="app_id" width="25%" />
+ <field content="identifier" width="25%" />
<field content="title" width="50%" />
</fields>
</windowSwitcher>
} 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 {
int width;
} fields[] = {
{ LAB_FIELD_TYPE, 25 },
- { LAB_FIELD_APP_ID, 25 },
+ { LAB_FIELD_IDENTIFIER, 25 },
{ LAB_FIELD_TITLE, 50 },
{ LAB_FIELD_NONE, 0 },
};
case LAB_FIELD_TYPE:
buf_add(&buf, get_type(*view));
break;
- case LAB_FIELD_APP_ID:
+ case LAB_FIELD_IDENTIFIER:
buf_add(&buf, get_app_id(*view));
break;
case LAB_FIELD_TITLE: