]> git.mdlowis.com Git - proto/labwc.git/commitdiff
osd-thumbnail: s/thumb_theme/switcher_them/
authortokyo4j <hrak1529@gmail.com>
Sat, 1 Nov 2025 13:56:45 +0000 (22:56 +0900)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sat, 1 Nov 2025 16:00:20 +0000 (16:00 +0000)
Just to align with other parts of the codebase.

src/osd/osd-thumbnail.c

index c9e6b283e8a5622385e942534d05446b800819c1..4e420cf11e8699378cd5345531ea8348b82e725d 100644 (file)
@@ -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;
                }