aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@10kloc.org>2006-10-05 11:00:55 +0200
committerAnselm R. Garbe <arg@10kloc.org>2006-10-05 11:00:55 +0200
commit7c052b37c8578a8d759bc761afaf7b676781b537 (patch)
treec62e194b9adaa602ef575a1d62667460ed076934
parentd9c475d7f4978f97b63b462425eb413c11fe337b (diff)
downloaddwm-7c052b37c8578a8d759bc761afaf7b676781b537.tar.gz
applied resizecol fix by Jukka
-rw-r--r--view.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/view.c b/view.c
index 7c56ac2..d37933a 100644
--- a/view.c
+++ b/view.c
@@ -259,6 +259,7 @@ isvisible(Client *c) {
void
resizecol(Arg *arg) {
+ int s;
unsigned int n;
Client *c;
@@ -268,13 +269,14 @@ resizecol(Arg *arg) {
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;
}
remember that computers suck.