adaptive padding for longer window titles when overlapping with arrow
@@ -978,10 +978,13 @@ drawbar(Monitor *m)
if ( TEXTW(c->name) < tabw ) {
int mid = ((tabw - (TEXTW(c->name))) / 2);
drw_text(drw, x, 0, tabw, bh, mid, c->name, 0);
+ } else {
+ if (x < arrowx + tabw){
+ drw_text(drw, x, 0, tabw, bh, (lrpad / 2) + (bh / 2), c->name, 0);
}else{
drw_text(drw, x, 0, tabw, bh, lrpad / 2, c->name, 0);
}
-
+ }
x += tabw;
}
} else {
