applied anydot's 3 minor patches, thank you anydot

This commit is contained in:
Anselm R. Garbe
2007-05-29 11:35:20 +02:00
parent 492c6f10fc
commit 199a601611
4 changed files with 31 additions and 34 deletions

View File

@ -242,11 +242,11 @@ enternotify(XEvent *e) {
if(ev->mode != NotifyNormal || ev->detail == NotifyInferior)
return;
if((c = getclient(ev->window)) && isvisible(c))
if(c = getclient(ev->window))
focus(c);
else if(ev->window == root) {
selscreen = True;
focustopvisible();
focus(NULL);
}
}