X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=client.c;h=586a87f696bf9d9a030387d67d83853b2b891a67;hb=a33150eb4b041b243d0493cd4b53bfbcace3299e;hp=0b5fb2ba0171cce4b98f9d1b5da6f3b8bd466196;hpb=95d8423823800cdb9e4ed06f407f2d5deefcaf38;p=dwm.git diff --git a/client.c b/client.c index 0b5fb2b..586a87f 100644 --- a/client.c +++ b/client.c @@ -199,7 +199,7 @@ void manage(Window w, XWindowAttributes *wa) { unsigned int i; - Client *c, *tc; + Client *c; Window trans; XSetWindowAttributes twa; @@ -238,11 +238,7 @@ manage(Window w, XWindowAttributes *wa) CWOverrideRedirect | CWBackPixmap | CWEventMask, &twa); grabbuttons(c, False); - if((tc = getclient(trans))) /* inherit tags */ - for(i = 0; i < ntags; i++) - c->tags[i] = tc->tags[i]; - else - settags(c); + settags(c, getclient(trans)); if(!c->isfloat) c->isfloat = trans || (c->maxw && c->minw && @@ -254,15 +250,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