wmii

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

commit ccf85c6c9006552b35906be82babb3645afd48ed
parent f85ea6d8715bbc27f81ed0fadb30cfd5f5658c52
Author: Anselm R. Garbe <garbeam@wmii.de>
Date:   Wed,  8 Mar 2006 12:45:28 +0100

stablelized things somewhat more


Diffstat:
cmd/wm/client.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/cmd/wm/client.c b/cmd/wm/client.c @@ -337,6 +337,7 @@ void detach_client(Client *c, Bool unmap) { int i; + Client *cl; for(i = 0; i < ntag; i++) detach_fromtag(tag[i], c, unmap); if(!unmap) @@ -347,6 +348,8 @@ detach_client(Client *c, Bool unmap) reparent_client(c, root, c->rect.x, c->rect.y); XUnmapWindow(dpy, c->framewin); } + if((cl = sel_client_of_tag(tag[sel]))) + focus_client(cl); } Client * @@ -506,6 +509,8 @@ sendtoarea_client(Client *c, char *arg) if(i == -1) return; if(!strncmp(arg, "new", 4)) { + if(a->nframe == 1) + return; to = alloc_area(t); arrange_tag(t, True); }