changeset: 1771:0b1850c5c63d
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Wed Feb 07 12:08:25 2007 -0500
files: area.c
description:
Restore cycling of areas.
diff -r 948a26e6c230 -r 0b1850c5c63d area.c
--- a/area.c Wed Feb 07 07:34:29 2007 +0100
+++ b/area.c Wed Feb 07 12:08:25 2007 -0500
@@ -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)
Received on Wed Feb 07 2007 - 18:10:04 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:54:58 UTC