From: Johan Malm Date: Wed, 6 Dec 2023 21:55:31 +0000 (+0000) Subject: theme: fix icon bug X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=5bc58fc3818fa906990d30b0244baf87e6e14e1f;p=proto%2Flabwc.git theme: fix icon bug Do not carry over previous alt_filename for icons that don't have one. --- diff --git a/src/theme.c b/src/theme.c index 1df54389..97a00695 100644 --- a/src/theme.c +++ b/src/theme.c @@ -227,6 +227,7 @@ load_buttons(struct theme *theme) /* If there were no png/svg buttons, use xbm */ snprintf(filename, sizeof(filename), "%s.xbm", b->name); + alt_filename[0] = '\0'; if (b->alt_name) { snprintf(alt_filename, sizeof(alt_filename), "%s.xbm", b->alt_name); }