Upgrading winicon patch to v2.1 ref. #238
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user