applied sanders patch to remove unnecessary commit()

This commit is contained in:
Anselm R. Garbe
2006-08-31 08:48:04 +02:00
parent 9927b9e642
commit 4c368bcd24
3 changed files with 9 additions and 16 deletions

8
view.c
View File

@ -67,7 +67,9 @@ dofloat(Arg *arg)
else
ban(c);
}
if((sel = getnext(clients)))
if(!sel || !isvisible(sel))
sel = getnext(clients);
if(sel)
focus(sel);
else
XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
@ -130,7 +132,9 @@ dotile(Arg *arg)
else
ban(c);
}
if((sel = getnext(clients)))
if(!sel || !isvisible(sel))
sel = getnext(clients);
if(sel)
focus(sel);
else
XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);