Fix (Left|Right)Bar.* events. They tended to prefer left.

This commit is contained in:
Kris Maglione 2008-01-24 20:03:44 -05:00
parent daf0495a9c
commit 504e36ae5f

View File

@ -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++) {
@ -100,6 +94,12 @@ bar_create(Bar **bp, const char *name) {
b->bar = i;
}
for(; *bp; bp = &bp[0]->next)
if(strcmp(bp[0]->name, name) >= 0)
break;
b->next = *bp;
*bp = b;
return b;
}