commit 3cb6d8a7d169f153f9b1a541d7efde42bf36c407
parent 4dce9d067b6d55e552298e18dda4b264fbcf1a44
Author: Kris Maglione <jg@suckless.org>
Date: Sun, 4 Mar 2007 14:53:48 -0500
Don't create a new area on the 'swap' command.
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/client.c b/client.c
@@ -746,14 +746,15 @@ send_client(Frame *f, char *arg, Bool swap) {
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;
}