fix tab bar overlap issue

This commit is contained in:
Jakub 2025-01-23 12:16:46 -05:00
parent d819070c79
commit 3f7fa8a8ee

2
dwm.c
View File

@ -995,7 +995,7 @@ drawbar(Monitor *m)
drw_setscheme(drw, scheme[SchemeWf]); drw_setscheme(drw, scheme[SchemeWf]);
x = drw_text(drw, x, 0, w, bh, lrpad / 2, wfsymbol, 0); x = drw_text(drw, x, 0, w, bh, lrpad / 2, wfsymbol, 0);
if ((w = m->ww - tw - x) > bh) { if ((w = m->ww - tw - x - sp * 2) > bh) {
if (n > 0) { if (n > 0) {
int remainder = w % n; int remainder = w % n;
int tabw = (1.0 / (double)n) * w + 1; int tabw = (1.0 / (double)n) * w + 1;