changeset: 2000:14e153061bed
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Sun Mar 04 14:53:48 2007 -0500
summary: Don't create a new area on the 'swap' command.
diff -r f0ea1c86e300 -r 14e153061bed client.c
--- a/client.c Sun Mar 04 13:54:02 2007 -0500
+++ b/client.c Sun Mar 04 14:53:48 2007 -0500
@@ -746,14 +746,15 @@ send_client(Frame *f, char *arg, Bool sw
return Ebadvalue;
for(to=v->area->next; to; to=to->next)
if(a == to->next) break;
- if(!to && (f->anext || f != a->frame))
+ if(!to && !swap && (f->anext || f != a->frame))
to=new_column(v, v->area, 0);
goto send_area;
}
else if(!strncmp(arg, "right", 5)) {
if(a->floating)
return Ebadvalue;
- if(!(to = a->next) && (f->anext || f != a->frame))
+ to = a->next;
+ if(!to && !swap && (f->anext || f != a->frame))
to = new_column(v, a, 0);
goto send_area;
}
Received on Sun Mar 04 2007 - 20:55:09 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:56:09 UTC