wmii

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

commit ae04939f772747259b55ce19bdcca3ed09984922
parent 1f64e630ca6cf16427f3d21c93445d653df64ae3
Author: Anselm R. Garbe <garbeam@wmii.de>
Date:   Thu,  9 Mar 2006 12:44:38 +0100

if last managed client is destroyed, but floating clients still exist, the focused layer is selected implicitely


Diffstat:
cmd/wm/area.c | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/cmd/wm/area.c b/cmd/wm/area.c @@ -159,8 +159,12 @@ detach_fromarea(Area *a, Client *c) if(i && a->nframe) arrange_area(a); else { - if(i && t->narea > 2) - destroy_area(a); + if(i) { + if(t->narea > 2) + destroy_area(a); + else if(!a->nframe && t->area[0]->nframe) + t->sel = 0; /* focus floating area if it contains something */ + } else if(!i && !a->nframe) { if(c->trans) { /* focus area of transient, if possible */