Mercurial > dwm-meillo
diff view.c @ 558:e249e2952a32
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)
author | arg@mig29 |
---|---|
date | Tue, 31 Oct 2006 12:06:38 +0100 |
parents | fd1061442711 |
children | a2c465098a3b |
line wrap: on
line diff
--- a/view.c Tue Oct 31 09:02:42 2006 +0100 +++ b/view.c Tue Oct 31 12:06:38 2006 +0100 @@ -196,24 +196,9 @@ 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(); }