mirror of
https://github.com/labwc/labwc.git
synced 2025-11-01 22:58:47 -04:00
rcxml: validate total osd field width
Before this patch, window switcher fields could overflow if the sum of <windowSwitcher><fields><field width=""> exceeds 100%.
This commit is contained in:
parent
706f7bc03c
commit
cb58156904
3 changed files with 5 additions and 3 deletions
|
|
@ -59,7 +59,7 @@ void osd_field_get_content(struct window_switcher_field *field,
|
|||
struct window_switcher_field *osd_field_create(void);
|
||||
void osd_field_arg_from_xml_node(struct window_switcher_field *field,
|
||||
const char *nodename, const char *content);
|
||||
bool osd_field_validate(struct window_switcher_field *field);
|
||||
bool osd_field_is_valid(struct window_switcher_field *field);
|
||||
void osd_field_free(struct window_switcher_field *field);
|
||||
|
||||
#endif // LABWC_OSD_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue