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)
{
sel->h = sh - 2 - bh;
higher(sel);
- resize(sel, False, TopLeft);
+ resize(sel, arrange == dofloat, TopLeft);
sel->x = ox;
sel->y = oy;
{
Client *c;
- if(!sel || (arrange != dotile) || sel->isfloat)
+ if(!sel || (arrange != dotile) || sel->isfloat || sel->ismax)
return;
- if(sel == getnext(clients) && sel->next) {
+ if(sel == getnext(clients)) {
if((c = getnext(sel->next)))
sel = c;
+ else
+ return;
}
/* pop */