Browse Source

applied resizecol fix by Jukka

master
Anselm R. Garbe 18 years ago
parent
commit
7c052b37c8
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      view.c

+ 4
- 2
view.c View File

@ -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;
}


Loading…
Cancel
Save