changeset: 2588:f4341da84897
tag: tip
user: Kris Maglione <kris_AT_suckless.org>
date: Sun Nov 08 04:45:21 2009 -0500
files: cmd/wmii/bar.c cmd/wmii/client.c cmd/wmii/column.c doc/wmii.tex
description:
Add a note about 'default' colmode to doc/wmii.tex. Some minor cleanup elsewhere.
diff -r 7b4154e0c31b -r f4341da84897 cmd/wmii/bar.c
--- a/cmd/wmii/bar.c Sat Nov 07 18:59:33 2009 -0500
+++ b/cmd/wmii/bar.c Sun Nov 08 04:45:21 2009 -0500
@@ -135,6 +135,8 @@
uint width, tw;
float shrink;
+ /* To do: Generalize this. */
+
largest = nil;
width = 0;
foreach_bar(s, b) {
diff -r 7b4154e0c31b -r f4341da84897 cmd/wmii/client.c
--- a/cmd/wmii/client.c Sat Nov 07 18:59:33 2009 -0500
+++ b/cmd/wmii/client.c Sun Nov 08 04:45:21 2009 -0500
@@ -178,9 +178,9 @@
/*
* It's actually possible for a window to be destroyed
- * before we get a chance to reparant it. Check for that
- * now, because otherwise we'll wind up mapping an empty
- * frame.
+ * before we get a chance to reparent it. Check for that
+ * now, because otherwise we'll wind up mapping a
+ * perceptibly empty frame before it's destroyed.
*/
traperrors(true);
reparentwindow(&c->w, c->framewin, p);
diff -r 7b4154e0c31b -r f4341da84897 cmd/wmii/column.c
--- a/cmd/wmii/column.c Sat Nov 07 18:59:33 2009 -0500
+++ b/cmd/wmii/column.c Sun Nov 08 04:45:21 2009 -0500
@@ -17,7 +17,7 @@
bool
column_setmode(Area *a, const char *mode) {
- char *s, *t, *orig;
+ char *str, *tok, *orig;
char add, old;
/*
@@ -28,15 +28,16 @@
*/
orig = strdup(mode);
- t = orig;
+ str = orig;
old = '\0';
- for(s=t; *s; s=t) {
+ while(*(tok = str)) {
add = old;
- while((old=*s) && !strchr("+-^", old))
- s++;
- *s = '\0';
- if(s > t) {
- if(!strcmp(t, "max")) {
+ while((old=*str) && !strchr("+-^", old))
+ str++;
+ *str = '\0';
+ if(str > tok) {
+ print("'%s' %c\n", tok, add);
+ if(!strcmp(tok, "max")) {
if(add == '\0' || add == '+')
a->max = true;
else if(add == '-')
@@ -44,7 +45,7 @@
else
a->max = !a->max;
}else
- if(!strcmp(t, "stack")) {
+ if(!strcmp(tok, "stack")) {
if(add == '\0' || add == '+')
a->mode = Colstack;
else if(add == '-')
@@ -52,7 +53,7 @@
else
a->mode = a->mode == Colstack ? Coldefault : Colstack;
}else
- if(!strcmp(t, "default")) {
+ if(!strcmp(tok, "default")) {
if(add == '\0' || add == '+') {
a->mode = Coldefault;
column_arrange(a, true);
@@ -65,9 +66,8 @@
return false;
}
}
- t = s;
if(old)
- t++;
+ str++;
}
free(orig);
diff -r 7b4154e0c31b -r f4341da84897 doc/wmii.tex
--- a/doc/wmii.tex Sat Nov 07 18:59:33 2009 -0500
+++ b/doc/wmii.tex Sun Nov 08 04:45:21 2009 -0500
@@ -1015,6 +1015,8 @@
{\it‹n›/‹m›}, where ‹m› is the number of collapsed
clients directly above and below the client, plus one,
and ‹n› is the client's index in the stack.
+ \item[default] Like subtracting the stack mode, but all
+ clients in the column are given equal height.
\end{description}
For the floating area, the values are the same, except that
Received on Sun Nov 08 2009 - 09:47:58 UTC
This archive was generated by hypermail 2.2.0 : Sun Nov 08 2009 - 10:00:07 UTC