]> git.mdlowis.com Git - proto/labwc.git/commitdiff
ssd: minor logic simplification
authorJohan Malm <jgm323@gmail.com>
Tue, 8 Oct 2024 20:27:19 +0000 (21:27 +0100)
committerJohan Malm <jgm323@gmail.com>
Tue, 8 Oct 2024 20:28:17 +0000 (21:28 +0100)
No functional change intended

src/ssd/ssd-titlebar.c

index 91be871701f34736f46039ee56d7e6968c1134c8..8591759affd893a9ef0762c206e89852f31e5dfc 100644 (file)
@@ -609,7 +609,7 @@ ssd_update_window_icon(struct ssd *ssd)
         */
        int hpad = theme->window_button_width / 10;
        int icon_size = MIN(theme->window_button_width - 2 * hpad,
-               theme->title_height - 2 * theme->window_titlebar_padding_height);
+               theme->window_button_height);
 
        /*
         * Load/render icons at the max scale of any usable output (at