summaryrefslogtreecommitdiff
path: root/view.c
diff options
context:
space:
mode:
Diffstat (limited to 'view.c')
-rw-r--r--view.c19
1 files changed, 2 insertions, 17 deletions
diff --git a/view.c b/view.c
index 85bfabf3..4f42abe4 100644
--- a/view.c
+++ b/view.c
@@ -196,24 +196,9 @@ isvisible(Client *c) {
void
resizecol(Arg *arg) {
- unsigned int n;
- Client *c;
-
- for(n = 0, c = clients; c; c = c->next)
- if(isvisible(c) && !c->isfloat)
- n++;
- if(!sel || sel->isfloat || n < 2 || (arrange == dofloat))
+ if(master + arg->i > 950 || master + arg->i < 50)
return;
- if(sel == getnext(clients)) {
- if(master + arg->i > 950 || master + arg->i < 50)
- return;
- master += arg->i;
- }
- else {
- if(master - arg->i > 950 || master - arg->i < 50)
- return;
- master -= arg->i;
- }
+ master += arg->i;
arrange();
}