add thumbnailLabelFormat to windowSwitcher

This commit is contained in:
elviosak 2025-11-05 06:16:18 -03:00
parent 8b950350ed
commit 0d7a75489c
6 changed files with 34 additions and 21 deletions

View file

@ -183,6 +183,7 @@ struct rcxml {
enum lab_view_criteria criteria;
struct wl_list fields; /* struct window_switcher_field.link */
enum window_switcher_style style;
char *thumbnail_label_format;
} window_switcher;
struct wl_list window_rules; /* struct window_rule.link */

View file

@ -65,6 +65,9 @@ void osd_on_cursor_release(struct server *server, struct wlr_scene_node *node);
/* Used by osd.c internally to render window switcher fields */
void osd_field_get_content(struct window_switcher_field *field,
struct buf *buf, struct view *view);
/* Sets view info to buf according to format */
void osd_field_set_custom(struct buf *buf, struct view *view,
const char *format);
/* Used by rcxml.c when parsing the config */
void osd_field_arg_from_xml_node(struct window_switcher_field *field,