]> git.lizzy.rs Git - plan9front.git/commitdiff
rio: pad window status strings in wctl files
authorAlex Musolino <alex@musolino.id.au>
Tue, 19 Nov 2019 02:10:53 +0000 (12:40 +1030)
committerAlex Musolino <alex@musolino.id.au>
Tue, 19 Nov 2019 02:10:53 +0000 (12:40 +1030)
This makes it possible to read the entire initial contents of the wctl
files without blocking.

sys/src/cmd/rio/wind.c

index 004990118bbfc1ded856b2cd8e5b3d2e28f4f225..1026a768ee00b2ab0de8eb93b5ae080bccb17e6b 100644 (file)
@@ -406,7 +406,7 @@ winctl(void *arg)
                        t = "notcurrent";
                        if(w == input)
                                t = "current";
-                       pair.ns = snprint(pair.s, pair.ns, "%11d %11d %11d %11d %s %s ",
+                       pair.ns = snprint(pair.s, pair.ns, "%11d %11d %11d %11d %11s %11s ",
                                w->i->r.min.x, w->i->r.min.y, w->i->r.max.x, w->i->r.max.y, t, s);
                        send(crm.c2, &pair);
                        continue;