view.c
changeset 418 0f351a3e5c21
parent 417 a43c395003bc
child 419 7a65674a0fd7
equal deleted inserted replaced
417:a43c395003bc 418:0f351a3e5c21
   170 }
   170 }
   171 
   171 
   172 void
   172 void
   173 growcol(Arg *arg)
   173 growcol(Arg *arg)
   174 {
   174 {
   175 	if(!sel || !clients || !clients->next || (arrange != dotile))
   175 	Client *c = getnext(clients);
       
   176 
       
   177 	if(!sel || !c || !getnext(c->next) || (arrange != dotile))
   176 		return;
   178 		return;
   177 	if(sel == getnext(clients)) {
   179 	if(sel == getnext(clients)) {
   178 		if(mw + arg->i > sw - 100)
   180 		if(mw + arg->i > sw - 100)
   179 			return;
   181 			return;
   180 		mw += arg->i;
   182 		mw += arg->i;