diff options
| author | bakkeby <[email protected]> | 2020-09-09 17:24:02 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2020-09-09 17:24:02 +0200 |
| commit | ff9811f73d1f3d47a6ab7a2a7e44308bf849fb44 (patch) | |
| tree | ded58addbdbcf61bdf8eaa99d9c67f46d1f8921d /patch/bar_indicators.c | |
| parent | b3e6e3531b79b4bcd6938f291f9658ca5bbc5dd2 (diff) | |
| download | dwm-flexipatch-ff9811f73d1f3d47a6ab7a2a7e44308bf849fb44.tar.gz dwm-flexipatch-ff9811f73d1f3d47a6ab7a2a7e44308bf849fb44.zip | |
Just some minor changes adding bar border patch ref. #41
Diffstat (limited to 'patch/bar_indicators.c')
| -rw-r--r-- | patch/bar_indicators.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/patch/bar_indicators.c b/patch/bar_indicators.c index 11876c6..624aff7 100644 --- a/patch/bar_indicators.c +++ b/patch/bar_indicators.c @@ -10,7 +10,7 @@ #endif void -drawindicator(Monitor *m, Client *c, unsigned int occ, int x, int w, unsigned int tag, int filled, int invert, int type) +drawindicator(Monitor *m, Client *c, unsigned int occ, int x, int y, int w, int h, unsigned int tag, int filled, int invert, int type) { int i, boxw, boxs, indn = 0; if (!(occ & 1 << tag) || type == INDICATOR_NONE) @@ -24,31 +24,31 @@ drawindicator(Monitor *m, Client *c, unsigned int occ, int x, int w, unsigned in switch (type) { default: case INDICATOR_TOP_LEFT_SQUARE: - drw_rect(drw, x + boxs, boxs, boxw, boxw, filled, invert); + drw_rect(drw, x + boxs, y + boxs, boxw, boxw, filled, invert); break; case INDICATOR_TOP_LEFT_LARGER_SQUARE: - drw_rect(drw, x + boxs + 2, boxs+1, boxw+1, boxw+1, filled, invert); + drw_rect(drw, x + boxs + 2, y + boxs+1, boxw+1, boxw+1, filled, invert); break; case INDICATOR_TOP_BAR: - drw_rect(drw, x + boxw, 0, w - ( 2 * boxw + 1), boxw/2, filled, invert); + drw_rect(drw, x + boxw, y, w - ( 2 * boxw + 1), boxw/2, filled, invert); break; case INDICATOR_TOP_BAR_SLIM: - drw_rect(drw, x + boxw, 0, w - ( 2 * boxw + 1), 1, 0, invert); + drw_rect(drw, x + boxw, y, w - ( 2 * boxw + 1), 1, 0, invert); break; case INDICATOR_BOTTOM_BAR: - drw_rect(drw, x + boxw, bh - boxw/2, w - ( 2 * boxw + 1), boxw/2, filled, invert); + drw_rect(drw, x + boxw, y + h - boxw/2, w - ( 2 * boxw + 1), boxw/2, filled, invert); break; case INDICATOR_BOTTOM_BAR_SLIM: - drw_rect(drw, x + boxw, bh - 1, w - ( 2 * boxw + 1), 1, 0, invert); + drw_rect(drw, x + boxw, y + h - 1, w - ( 2 * boxw + 1), 1, 0, invert); break; case INDICATOR_BOX: - drw_rect(drw, x + boxw, 0, w - 2 * boxw, bh, 0, invert); + drw_rect(drw, x + boxw, y, w - 2 * boxw, h, 0, invert); break; case INDICATOR_BOX_WIDER: - drw_rect(drw, x + boxw/2, 0, w - boxw, bh, 0, invert); + drw_rect(drw, x + boxw/2, y, w - boxw, h, 0, invert); break; case INDICATOR_BOX_FULL: - drw_rect(drw, x, 0, w - 2, bh, 0, invert); + drw_rect(drw, x, y, w - 2, h, 0, invert); break; case INDICATOR_CLIENT_DOTS: for (c = m->clients; c; c = c->next) { @@ -56,7 +56,7 @@ drawindicator(Monitor *m, Client *c, unsigned int occ, int x, int w, unsigned in drw_rect(drw, x, 1 + (indn * 2), m->sel == c ? 6 : 1, 1, 1, invert); indn++; } - if (bh <= 1 + (indn * 2)) { + if (h <= 1 + (indn * 2)) { indn = 0; x += 2; } |
