From: Anselm R. Garbe Date: Mon, 4 Sep 2006 15:39:33 +0000 (+0200) Subject: simplified manage X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=f15f45a9f80d5dcd1098b8e9aef4fee7bd53aba4;hp=1b2e149cb407be34be0f2b28b8801dc3224eb5c2;p=dwm.git simplified manage --- diff --git a/client.c b/client.c index 0b5fb2b..4f2a69c 100644 --- a/client.c +++ b/client.c @@ -254,15 +254,12 @@ manage(Window w, XWindowAttributes *wa) clients = c; settitle(c); - if(isvisible(c)) { - focus(NULL); - sel = c; - } - arrange(NULL); + ban(c); XMapWindow(dpy, c->win); XMapWindow(dpy, c->twin); if(isvisible(c)) focus(c); + arrange(NULL); } void