|
|
@ -49,10 +49,12 @@ ban(Client *c) |
|
|
|
void |
|
|
|
void |
|
|
|
focus(Client *c) |
|
|
|
focus(Client *c) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!issel) |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
Client *old = sel; |
|
|
|
Client *old = sel; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!issel) |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
if(sel && sel->ismax) |
|
|
|
|
|
|
|
togglemax(NULL); |
|
|
|
sel = c; |
|
|
|
sel = c; |
|
|
|
if(old && old != c) |
|
|
|
if(old && old != c) |
|
|
|
drawtitle(old); |
|
|
|
drawtitle(old); |
|
|
@ -68,9 +70,6 @@ focusnext(Arg *arg) |
|
|
|
if(!sel) |
|
|
|
if(!sel) |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
if(sel->ismax) |
|
|
|
|
|
|
|
togglemax(NULL); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(!(c = getnext(sel->next))) |
|
|
|
if(!(c = getnext(sel->next))) |
|
|
|
c = getnext(clients); |
|
|
|
c = getnext(clients); |
|
|
|
if(c) { |
|
|
|
if(c) { |
|
|
@ -87,9 +86,6 @@ focusprev(Arg *arg) |
|
|
|
if(!sel) |
|
|
|
if(!sel) |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
if(sel->ismax) |
|
|
|
|
|
|
|
togglemax(NULL); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(!(c = getprev(sel->prev))) { |
|
|
|
if(!(c = getprev(sel->prev))) { |
|
|
|
for(c = clients; c && c->next; c = c->next); |
|
|
|
for(c = clients; c && c->next; c = c->next); |
|
|
|
c = getprev(c); |
|
|
|
c = getprev(c); |
|
|
|