changeset: 2259:0b003cc0cc07
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Thu Jan 24 20:03:44 2008 -0500
summary: Fix (Left|Right)Bar.* events. They tended to prefer left.
diff -r 3bf92fabfb6b -r 0b003cc0cc07 cmd/wmii/bar.c
--- a/cmd/wmii/bar.c Thu Jan 24 19:50:54 2008 -0500
+++ b/cmd/wmii/bar.c Thu Jan 24 20:03:44 2008 -0500
@@ -86,12 +86,6 @@ bar_create(Bar **bp, const char *name) {
b->id = id++;
utflcpy(b->name, name, sizeof b->name);
b->col = def.normcolor;
-
- for(; *bp; bp = &bp[0]->next)
- if(strcmp(bp[0]->name, name) >= 0)
- break;
- b->next = *bp;
- *bp = b;
/* FIXME: Kludge. */
for(s=screens; s < screens+num_screens; s++) {
@@ -99,6 +93,12 @@ bar_create(Bar **bp, const char *name) {
if(i < nelem(s->bar))
b->bar = i;
}
+
+ for(; *bp; bp = &bp[0]->next)
+ if(strcmp(bp[0]->name, name) >= 0)
+ break;
+ b->next = *bp;
+ *bp = b;
return b;
}
Received on Fri Jan 25 2008 - 02:05:37 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:59:09 UTC