void
focus(Client *c)
{
+ if (!issel)
+ return;
Client *old = sel;
XEvent ev;
XKillClient(dpy, sel->win);
}
-void
-lower(Client *c)
-{
- XLowerWindow(dpy, c->title);
- XLowerWindow(dpy, c->win);
-}
-
void
manage(Window w, XWindowAttributes *wa)
{
{
Client *c;
- if(!sel || arrange != dotile)
+ if(!sel || (arrange != dotile) || sel->isfloat)
return;
- if(sel == getnext(clients) && sel->next) {
+ if(sel == getnext(clients)) {
if((c = getnext(sel->next)))
sel = c;
+ else
+ return;
}
/* pop */