diff options
author | arg@mig29 <unknown> | 2006-10-31 12:06:38 +0100 |
---|---|---|
committer | arg@mig29 <unknown> | 2006-10-31 12:06:38 +0100 |
commit | 2cce4b95cdce5617318fc4fb5d21abe41110c27a (patch) | |
tree | cd284e2eba0c287ea2a0d32fc3939f3c9607091a /view.c | |
parent | 8e6eb52196c581351925811c15afa0d4deb5130a (diff) | |
download | dwm-2cce4b95cdce5617318fc4fb5d21abe41110c27a.tar.gz |
applied Gottox patch to simplify the resizing of col, instead of resizing the current area, it only resizes the master area in the future (seems more predictable)
Diffstat (limited to 'view.c')
-rw-r--r-- | view.c | 19 |
1 files changed, 2 insertions, 17 deletions
@@ -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(); } |