mirror of https://github.com/0intro/wmii
some cleaning
This commit is contained in:
parent
5e3214dfa4
commit
de4c819d97
|
@ -218,11 +218,10 @@ handle_enternotify(XEvent *e)
|
|||
|
||||
if((c = client_of_win(ev->window))) {
|
||||
Client *old = sel_client_of_view(view.data[sel]);
|
||||
Frame *oldf = nil, *f = c->frame.data[c->sel];
|
||||
if(old)
|
||||
oldf = old->frame.data[old->sel];
|
||||
if(f->area->mode == Colmax)
|
||||
c = f->area->frame.data[f->area->sel]->client;
|
||||
Frame *f = c->frame.data[c->sel];
|
||||
Area *a = f->area;
|
||||
if(a->mode == Colmax)
|
||||
c = a->frame.data[a->sel]->client;
|
||||
if(c != old)
|
||||
focus(c, False);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue