[dwm] Fix tag click alignment

This commit is contained in:
dogeystamp 2021-04-05 11:20:04 -04:00
parent 2b6722fcba
commit b2f4c64dd6

View File

@ -502,7 +502,7 @@ buttonpress(XEvent *e)
if (ev->window == selmon->barwin) {
i = x = 0;
do
x += TEXTW(tags[i]);
x += (drw->fonts->h / 6 + 2)*4;
while (ev->x >= x && ++i < LENGTH(tags));
if (i < LENGTH(tags)) {
click = ClkTagBar;