summaryrefslogtreecommitdiffhomepage
path: root/patch/bar_awesomebar.c
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2022-03-06 11:38:22 +0100
committerbakkeby <[email protected]>2022-03-06 11:38:22 +0100
commitadc05c2332b6267c4af5bf506ff071629d16f281 (patch)
tree8ea1e605244b7cc46437117aaf8b85a12c956c20 /patch/bar_awesomebar.c
parent5c321794f1ffb8f395de9b58e1c165e7137df711 (diff)
downloaddwm-flexipatch-adc05c2332b6267c4af5bf506ff071629d16f281.tar.gz
dwm-flexipatch-adc05c2332b6267c4af5bf506ff071629d16f281.zip
Upgrading winicon patch to v2.1 ref. #238
Diffstat (limited to 'patch/bar_awesomebar.c')
-rw-r--r--patch/bar_awesomebar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/patch/bar_awesomebar.c b/patch/bar_awesomebar.c
index 81711f3..c6fe8f1 100644
--- a/patch/bar_awesomebar.c
+++ b/patch/bar_awesomebar.c
@@ -50,7 +50,7 @@ draw_awesomebar(Bar *bar, BarArg *a)
cpad = 0;
#endif // BAR_CENTEREDWINDOWNAME_PATCH
#if BAR_WINICON_PATCH
- ipad = c->icon ? c->icon->width + ICONSPACING : 0;
+ ipad = c->icon ? c->icw + ICONSPACING : 0;
#endif // BAR_WINICON_PATCH
tx = x;
@@ -80,7 +80,7 @@ draw_awesomebar(Bar *bar, BarArg *a)
#if BAR_WINICON_PATCH
if (ipad) {
- drw_img(drw, tx, a->y + (a->h - c->icon->height) / 2, c->icon, tmpicon);
+ drw_pic(drw, tx, a->y + (a->h - c->ich) / 2, c->icw, c->ich, c->icon);
tx += ipad;
tw -= ipad;
}