dwm.c
changeset 1018 03a4ca076c53
parent 1017 585e3422edc8
child 1023 f6b71fb9ea39
equal deleted inserted replaced
1017:585e3422edc8 1018:03a4ca076c53
   646 
   646 
   647 	if(ev->mode != NotifyNormal || ev->detail == NotifyInferior)
   647 	if(ev->mode != NotifyNormal || ev->detail == NotifyInferior)
   648 		return;
   648 		return;
   649 	if((c = getclient(ev->window))) {
   649 	if((c = getclient(ev->window))) {
   650 		focus(c);
   650 		focus(c);
   651 		restack();
   651 		if(ISTILE && !c->isfloating)
       
   652 			restack();
   652 	}
   653 	}
   653 	else if(ev->window == root) {
   654 	else if(ev->window == root) {
   654 		selscreen = True;
   655 		selscreen = True;
   655 		focus(NULL);
   656 		focus(NULL);
   656 	}
   657 	}