diff options
| author | bakkeby <[email protected]> | 2022-03-06 11:38:22 +0100 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2022-03-06 11:38:22 +0100 |
| commit | adc05c2332b6267c4af5bf506ff071629d16f281 (patch) | |
| tree | 8ea1e605244b7cc46437117aaf8b85a12c956c20 /patch/bar_tabgroups.c | |
| parent | 5c321794f1ffb8f395de9b58e1c165e7137df711 (diff) | |
| download | dwm-flexipatch-adc05c2332b6267c4af5bf506ff071629d16f281.tar.gz dwm-flexipatch-adc05c2332b6267c4af5bf506ff071629d16f281.zip | |
Upgrading winicon patch to v2.1 ref. #238
Diffstat (limited to 'patch/bar_tabgroups.c')
| -rw-r--r-- | patch/bar_tabgroups.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/patch/bar_tabgroups.c b/patch/bar_tabgroups.c index b89d348..b61a0db 100644 --- a/patch/bar_tabgroups.c +++ b/patch/bar_tabgroups.c @@ -43,7 +43,7 @@ bartabdraw(Monitor *m, Client *c, int unused, int x, int w, int groupactive, Arg int i, nclienttags = 0, nviewtags = 0; 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; @@ -89,7 +89,7 @@ bartabdraw(Monitor *m, Client *c, int unused, int x, int w, int groupactive, Arg #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; } |
