void
focus(Client *c)
{
- if (!issel)
- return;
Client *old = sel;
+ if (!issel)
+ return;
+ if(sel && sel->ismax)
+ togglemax(NULL);
sel = c;
if(old && old != c)
drawtitle(old);
if(!sel)
return;
- if(sel->ismax)
- togglemax(NULL);
-
if(!(c = getnext(sel->next)))
c = getnext(clients);
if(c) {
if(!sel)
return;
- if(sel->ismax)
- togglemax(NULL);
-
if(!(c = getprev(sel->prev))) {
for(c = clients; c && c->next; c = c->next);
c = getprev(c);
static void
configurerequest(XEvent *e)
{
+ unsigned long newmask;
Client *c;
XConfigureRequestEvent *ev = &e->xconfigurerequest;
XEvent synev;
XWindowChanges wc;
- unsigned long newmask;
if((c = getclient(ev->window))) {
gravitate(c, True);