[dwm][PATCH] statuscolors, fix status text width computation

This is an updated version of the statuscolors patch that fixes the
computation of the text width. The previous version of the patch
inculded all the byte codes that are used to select the color schemes
when computing the width, obaining a width that is larger than the real
width. This patch fixes that by adding up the widths of the individual
chunks, separated by the codes that select the color schemes.
This commit is contained in:
bakkeby
2020-04-16 20:18:13 +02:00
parent f9a001dee7
commit ec32a28380
4 changed files with 39 additions and 9 deletions

View File

@ -110,6 +110,9 @@
#if STACKER_PATCH
#include "stacker.c"
#endif
#if STATUSCOLORS_PATCH
#include "statuscolors.c"
#endif
#if STATUSCMD_PATCH
#include "statuscmd.c"
#endif
@ -221,4 +224,4 @@
#endif
#if TILE_LAYOUT
#include "tile.c"
#endif
#endif