mirror of
https://github.com/0intro/wmii
synced 2025-02-03 15:57:48 +03:00
Fix (Left|Right)Bar.* events. They tended to prefer left.
This commit is contained in:
parent
daf0495a9c
commit
504e36ae5f
@ -87,12 +87,6 @@ bar_create(Bar **bp, const char *name) {
|
||||
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++) {
|
||||
i = bp - s->bar;
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user