mirror of
https://github.com/labwc/labwc.git
synced 2025-11-30 06:59:52 -05:00
osd: add thumbnailLabelFormat to windowSwitcher (#3187)
Some checks failed
labwc.github.io / notify (push) Has been cancelled
Some checks failed
labwc.github.io / notify (push) Has been cancelled
This commit adds `<windowSwitcher thumbnailLabelFormat="%T">` to configure the label text in each item in the thumbnail-style window switcher. Its format follows `<fields><field content="custom" format="">`.
This commit is contained in:
parent
8b950350ed
commit
c8167c8ee0
6 changed files with 34 additions and 21 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue