[dev] [st] [PATCH 2/2] Simplify window mapping loop.

2015-04-09 Thread noname
--- st.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/st.c b/st.c index a7064b1..c311164 100644 --- a/st.c +++ b/st.c @@ -3917,17 +3917,13 @@ run(void) { long deltatime; /* Waiting for window mapping */ - while(1) { + do {

[dev] [st] [PATCH 1/2] Use MAX macro where possible.

2015-04-09 Thread noname
--- st.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/st.c b/st.c index 0065240..a7064b1 100644 --- a/st.c +++ b/st.c @@ -4072,7 +4072,7 @@ main(int argc, char *argv[]) { run: setlocale(LC_CTYPE, ""); XSetLocaleModifiers(""); - tnew(cols? cols : 1, row

[dev] [dwm][patch] Conditional inverse color status text

2015-04-09 Thread Francois Gombault
Hi, I'd like to share a small patch of mine that some might find interesting. It's a lightweight way to highlight the status text : If that text starts with a non-printable character or space, then it will be drawn in inverted colors. My usage then is to display text there and occasionally flash