Fixing status2d and statuscmd / dwmblocks compatibility issues.

Text width calculations when using status2d strings resulted in
statuscmd button placement calculations to be way off. Fixed by
introducing a separate function status2dtextlength to get an
approximate correct text width.
This commit is contained in:
bakkeby
2020-05-27 21:04:22 +02:00
parent 1bf50728a7
commit 2e30bddc16
3 changed files with 62 additions and 100 deletions

View File

@ -1 +1,2 @@
static int drawstatusbar(Monitor *m, int bh, char* text, int stw, int stp);
static int drawstatusbar(Monitor *m, int bh, char* text, int stw, int stp);
static int status2dtextlength(char* stext);