osd: support app icons in window switcher

Example configuration:

  <windowSwitcher>
    <fields>
      <field content="icon" width="5%" />
      <field content="title" width="95%" />
    </fields>
  </windowSwitcher>
This commit is contained in:
tokyo4j 2025-03-14 19:33:28 +09:00 committed by Hiroaki Yamamoto
parent 84ba60f453
commit 4ef881bb3e
4 changed files with 26 additions and 9 deletions

View file

@ -319,6 +319,8 @@ osd_field_arg_from_xml_node(struct window_switcher_field *field,
field->content = LAB_FIELD_IDENTIFIER;
} else if (!strcmp(content, "trimmed_identifier")) {
field->content = LAB_FIELD_TRIMMED_IDENTIFIER;
} else if (!strcmp(content, "icon")) {
field->content = LAB_FIELD_ICON;
} else if (!strcmp(content, "desktop_entry_name")) {
field->content = LAB_FIELD_DESKTOP_ENTRY_NAME;
} else if (!strcmp(content, "title")) {