From 43c6e1dc22f1fa43a732161a7e1ac9efd207ba9b Mon Sep 17 00:00:00 2001 From: tokyo4j Date: Sat, 1 Nov 2025 22:56:45 +0900 Subject: [PATCH] osd-thumbnail: s/thumb_theme/switcher_them/ Just to align with other parts of the codebase. --- src/osd/osd-thumbnail.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/osd/osd-thumbnail.c b/src/osd/osd-thumbnail.c index c9e6b283..4e420cf1 100644 --- a/src/osd/osd-thumbnail.c +++ b/src/osd/osd-thumbnail.c @@ -178,21 +178,21 @@ static void get_items_geometry(struct output *output, struct theme *theme, int nr_thumbs, int *nr_rows, int *nr_cols) { - struct window_switcher_thumbnail_theme *thumb_theme = + struct window_switcher_thumbnail_theme *switcher_theme = &theme->osd_window_switcher_thumbnail; int output_width = output->wlr_output->width / output->wlr_output->scale; - int max_bg_width = thumb_theme->max_width; - if (thumb_theme->max_width_is_percent) { - max_bg_width = output_width * thumb_theme->max_width / 100; + int max_bg_width = switcher_theme->max_width; + if (switcher_theme->max_width_is_percent) { + max_bg_width = output_width * switcher_theme->max_width / 100; } *nr_rows = 1; *nr_cols = nr_thumbs; while (1) { assert(*nr_rows <= nr_thumbs); - int bg_width = *nr_cols * thumb_theme->item_width - + theme->osd_border_width + thumb_theme->padding; + int bg_width = *nr_cols * switcher_theme->item_width + + theme->osd_border_width + switcher_theme->padding; if (bg_width < max_bg_width) { break; }