summaryrefslogtreecommitdiffhomepage
path: root/patch/bar_wintitle.c
diff options
context:
space:
mode:
Diffstat (limited to 'patch/bar_wintitle.c')
-rw-r--r--patch/bar_wintitle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/patch/bar_wintitle.c b/patch/bar_wintitle.c
index 72926f2..fdb54ae 100644
--- a/patch/bar_wintitle.c
+++ b/patch/bar_wintitle.c
@@ -27,7 +27,7 @@ draw_wintitle(Bar *bar, BarArg *a)
int tpad = lrpad / 2;
#if BAR_WINICON_PATCH
- int ipad = c->icon ? c->icon->width + ICONSPACING : 0;
+ int ipad = c->icon ? c->icw + ICONSPACING : 0;
#endif // BAR_WINICON_PATCH
#if BAR_CENTEREDWINDOWNAME_PATCH
int cpad = 0;
@@ -64,7 +64,7 @@ draw_wintitle(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;
}