diff options
| author | bakkeby <[email protected]> | 2021-07-27 13:40:53 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2021-07-27 13:40:53 +0200 |
| commit | f8ae6714db02a42856c07066f689136999f6ad77 (patch) | |
| tree | 06a753cb58aa7ef3526afdf5d0325e2a520b5de9 /patch/bar_awesomebar.c | |
| parent | d72bc90cdc231ebf71530d1cd17e63b5cdf8eb96 (diff) | |
| download | dwm-flexipatch-f8ae6714db02a42856c07066f689136999f6ad77.tar.gz dwm-flexipatch-f8ae6714db02a42856c07066f689136999f6ad77.zip | |
Adding winicon patch
Diffstat (limited to 'patch/bar_awesomebar.c')
| -rw-r--r-- | patch/bar_awesomebar.c | 8 |
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); } |
