wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

commit fb1e4189d49e8cb25397dd264bed132b7fbbcdfb
parent 0364acb2ab6c9de13d84a09be0e16d532e049453
Author: Kris Maglione <kris@suckless.org>
Date:   Sat, 29 May 2010 11:54:38 -0400

Try harder not to focus doc windows.

Diffstat:
cmd/wmii/area.c | 1+
cmd/wmii/float.c | 7+++++--
2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/cmd/wmii/area.c b/cmd/wmii/area.c @@ -273,6 +273,7 @@ area_detach(Frame *f) { column_detach(f); if(v->sel->sel == nil && v->floating->sel) + if(v->floating->sel->client->nofocus) v->sel = v->floating; view_arrange(v); diff --git a/cmd/wmii/float.c b/cmd/wmii/float.c @@ -36,8 +36,11 @@ float_detach(Frame *f) { frame_remove(f); if(a->sel == f) { + while(pr && pr->client->nofocus) + pr = pr->aprev; if(!pr) - pr = a->frame; + for(pr=a->frame; pr && pr->anext; pr=pr->anext) + if(!pr->client->nofocus) break; a->sel = nil; area_setsel(a, pr); } @@ -45,7 +48,7 @@ float_detach(Frame *f) { if(oldsel) area_focus(oldsel); - else if(!a->frame) + else if(!a->frame || pr && pr->client->nofocus) if(sel && sel->frame) area_focus(sel); }