summaryrefslogtreecommitdiffhomepage
path: root/patch
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2020-07-31 10:24:54 +0200
committerbakkeby <[email protected]>2020-07-31 10:24:54 +0200
commit68d9a1d7cce9329abfc2590aedc4e24bdbf4c606 (patch)
tree401dc6b7496d2fbb39bf80ac080ac4dd1dce9db1 /patch
parent55c9570681c981756c8785f60dd87622e1acdb72 (diff)
downloaddwm-flexipatch-68d9a1d7cce9329abfc2590aedc4e24bdbf4c606.tar.gz
dwm-flexipatch-68d9a1d7cce9329abfc2590aedc4e24bdbf4c606.zip
status2d: set the correct scheme before updating colours
Diffstat (limited to 'patch')
-rw-r--r--patch/bar_status2d.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/patch/bar_status2d.c b/patch/bar_status2d.c
index f98e27a..d4a1e06 100644
--- a/patch/bar_status2d.c
+++ b/patch/bar_status2d.c
@@ -57,7 +57,6 @@ drawstatusbar(int x, char* stext)
short isCode = 0;
char *text;
char *p;
-
len = strlen(stext) + 1;
if (!(text = (char*) malloc(sizeof(char)*len)))
die("malloc");
@@ -69,6 +68,9 @@ drawstatusbar(int x, char* stext)
#endif // BAR_STATUSCMD_PATCH
x += lrpad / 2;
+ drw_setscheme(drw, scheme[LENGTH(colors)]);
+ drw->scheme[ColFg] = scheme[SchemeNorm][ColFg];
+ drw->scheme[ColBg] = scheme[SchemeNorm][ColBg];
/* process status text */
i = -1;
@@ -162,7 +164,6 @@ drawstatusbar(int x, char* stext)
free(p);
drw_setscheme(drw, scheme[SchemeNorm]);
-
return x;
}