summaryrefslogtreecommitdiffhomepage
path: root/patch/bar_statuscmd.c
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2021-08-25 12:18:01 +0200
committerbakkeby <[email protected]>2021-08-25 12:18:01 +0200
commit036421845ff585b87304e70e1168f24aab80ccdd (patch)
treef3be6db055677330354fae7b996e6ef8bf984b42 /patch/bar_statuscmd.c
parentc2e4fed9182c84c713b24e6f3c60754c950bcf9b (diff)
downloaddwm-flexipatch-036421845ff585b87304e70e1168f24aab80ccdd.tar.gz
dwm-flexipatch-036421845ff585b87304e70e1168f24aab80ccdd.zip
Adding separate statuscolors bar module ref. #180
Diffstat (limited to 'patch/bar_statuscmd.c')
-rw-r--r--patch/bar_statuscmd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/patch/bar_statuscmd.c b/patch/bar_statuscmd.c
index 5b26932..8a6393d 100644
--- a/patch/bar_statuscmd.c
+++ b/patch/bar_statuscmd.c
@@ -31,9 +31,13 @@ click_statuscmd_text(Arg *arg, int rel_x, char *text)
#endif // BAR_DWMBLOCKS_PATCH
while (text[++i]) {
if ((unsigned char)text[i] < ' ') {
+ #if BAR_STATUSCOLORS_PATCH
+ if (text[i] < 17)
+ continue;
+ #endif // BAR_STATUSCOLORS_PATCH
ch = text[i];
text[i] = '\0';
- #if BAR_STATUS2D_PATCH && !BAR_BAR_STATUSCOLORS_PATCH
+ #if BAR_STATUS2D_PATCH && !BAR_STATUSCOLORS_PATCH
x += status2dtextlength(text);
#else
x += TEXTWM(text) - lrpad;