wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

commit 6f0b9096d449078b03c6ed2780a19f59554b37a2
parent d3466a7bdb13a0612c3a1b867e714fbb8d8855cd
Author: Kris Maglione <jg@suckless.org>
Date:   Wed,  7 Feb 2007 12:08:25 -0500

Restore cycling of areas.


Diffstat:
area.c | 9+++------
1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/area.c b/area.c @@ -332,15 +332,12 @@ select_area(Area *a, char *arg) { } else if(!strncmp(arg, "left", 5)) { if(a->floating) return Ebadvalue; - for(new=v->area->next; - new && new->next != a; - new=new->next); - if(!new) - new=v->area->next; + for(new=v->area->next; new->next; new=new->next) + if(new->next == a) break; } else if(!strncmp(arg, "right", 5)) { if(a->floating) return Ebadvalue; - new = a->next ? a->next : a; + new = a->next ? a->next : v->area->next; } else if(!strncmp(arg, "up", 3)) { if(!f)