summaryrefslogtreecommitdiffhomepage
path: root/patch/bar_awesomebar.c
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2021-07-27 13:40:53 +0200
committerbakkeby <[email protected]>2021-07-27 13:40:53 +0200
commitf8ae6714db02a42856c07066f689136999f6ad77 (patch)
tree06a753cb58aa7ef3526afdf5d0325e2a520b5de9 /patch/bar_awesomebar.c
parentd72bc90cdc231ebf71530d1cd17e63b5cdf8eb96 (diff)
downloaddwm-flexipatch-f8ae6714db02a42856c07066f689136999f6ad77.tar.gz
dwm-flexipatch-f8ae6714db02a42856c07066f689136999f6ad77.zip
Adding winicon patch
Diffstat (limited to 'patch/bar_awesomebar.c')
-rw-r--r--patch/bar_awesomebar.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/patch/bar_awesomebar.c b/patch/bar_awesomebar.c
index 9e6bc97..b02c6e7 100644
--- a/patch/bar_awesomebar.c
+++ b/patch/bar_awesomebar.c
@@ -46,7 +46,15 @@ draw_awesomebar(Bar *bar, BarArg *a)
#endif // BAR_CENTEREDWINDOWNAME_PATCH
drw_setscheme(drw, scheme[scm]);
+
+ #if BAR_WINICON_PATCH
+ drw_text(drw, x, a->y, tabw + (i < remainder ? 1 : 0), a->h, pad + (c->icon ? c->icon->width + ICONSPACING : 0), c->name, 0, False);
+ if (c->icon)
+ drw_img(drw, x + pad, a->y + (a->h - c->icon->height) / 2, c->icon, tmpicon);
+ #else
drw_text(drw, x, a->y, tabw + (i < remainder ? 1 : 0), a->h, pad, c->name, 0, False);
+ #endif // BAR_WINICON_PATCH
+
drawstateindicator(c->mon, c, 1, x, a->y, tabw + (i < remainder ? 1 : 0), a->h, 0, 0, c->isfixed);
x += tabw + (i < remainder ? 1 : 0);
}