dwm.c
changeset 1509 7830e13337e9
parent 1508 0bee7022aca5
child 1510 e9c916f6ea15
equal deleted inserted replaced
1508:0bee7022aca5 1509:7830e13337e9
   813 
   813 
   814 void
   814 void
   815 focus(Client *c) {
   815 focus(Client *c) {
   816 	if(!c || !ISVISIBLE(c))
   816 	if(!c || !ISVISIBLE(c))
   817 		for(c = selmon->stack; c && !ISVISIBLE(c); c = c->snext);
   817 		for(c = selmon->stack; c && !ISVISIBLE(c); c = c->snext);
   818 //	if(selmon->sel)
   818 /*	if(selmon->sel)
   819 //		unfocus(selmon->sel);
   819 		unfocus(selmon->sel);*/
   820 	if(c) {
   820 	if(c) {
   821 		if(c->mon != selmon)
   821 		if(c->mon != selmon)
   822 			selmon = c->mon;
   822 			selmon = c->mon;
   823 		if(c->isurgent)
   823 		if(c->isurgent)
   824 			clearurgent(c);
   824 			clearurgent(c);