dwm.c
changeset 1268 fc7dd1b14093
parent 1267 10970b5a3c3b
child 1269 ce94428739ab
equal deleted inserted replaced
1267:10970b5a3c3b 1268:fc7dd1b14093
   322 				}
   322 				}
   323 				return;
   323 				return;
   324 			}
   324 			}
   325 		}
   325 		}
   326 		if(ev->x < x + blw) {
   326 		if(ev->x < x + blw) {
   327 			if(ev->button == Button1) 
   327 			if(ev->button == Button1)
   328 				togglelayout(NULL);
   328 				togglelayout(NULL);
   329 			else if(ev->button == Button3) 
   329 			else if(ev->button == Button3)
   330 				togglemax(NULL);
   330 				togglemax(NULL);
   331 		}
   331 		}
   332 	}
   332 	}
   333 	else if((c = getclient(ev->window))) {
   333 	else if((c = getclient(ev->window))) {
   334 		focus(c);
   334 		focus(c);
   660 	}
   660 	}
   661 	else {
   661 	else {
   662 		for(i = clients; i != sel; i = i->next)
   662 		for(i = clients; i != sel; i = i->next)
   663 			if (!i->isbanned)
   663 			if (!i->isbanned)
   664 				c = i;
   664 				c = i;
   665 		if(!c) 
   665 		if(!c)
   666 			for(; i; i = i->next)
   666 			for(; i; i = i->next)
   667 				if (!i->isbanned)
   667 				if (!i->isbanned)
   668 					c = i;
   668 					c = i;
   669 	}
   669 	}
   670 	if(c) {
   670 	if(c) {