mirror of
https://github.com/labwc/labwc.git
synced 2026-04-12 08:21:13 -04:00
Update theme.c
add check for greater than 100%
This commit is contained in:
parent
684b1ca527
commit
42f3477502
1 changed files with 4 additions and 0 deletions
|
|
@ -677,6 +677,10 @@ entry(struct theme *theme, const char *key, const char *value)
|
|||
theme->osd_width_should_parse_as_percentage = true;
|
||||
}
|
||||
theme->osd_window_switcher_width = atoi(value);
|
||||
if (theme->osd_width_should_parse_as_percentage &&
|
||||
theme->osd_window_switcher_width > 100) {
|
||||
theme->osd_window_switcher_width = 100;
|
||||
}
|
||||
}
|
||||
if (match_glob(key, "osd.window-switcher.padding")) {
|
||||
theme->osd_window_switcher_padding = atoi(value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue