applied resizecol fix by Jukka
Anselm R. Garbe arg@10kloc.org
Thu, 05 Oct 2006 11:00:55 +0200
1 files changed,
4 insertions(+),
2 deletions(-)
jump to
M
view.c
→
view.c
@@ -259,6 +259,7 @@ }
void resizecol(Arg *arg) { + int s; unsigned int n; Client *c;@@ -268,13 +269,14 @@ n++;
if(!sel || sel->isfloat || n < 2 || (arrange == dofloat)) return; + s = stackpos == StackBottom ? sh - bh : sw; if(sel == getnext(clients)) { - if(master + arg->i > sw - MINW || master + arg->i < MINW) + if(master + arg->i > s - MINW || master + arg->i < MINW) return; master += arg->i; } else { - if(master - arg->i > sw - MINW || master - arg->i < MINW) + if(master - arg->i > s - MINW || master - arg->i < MINW) return; master -= arg->i; }