}
}
if(c) {
+ if((c->isfloat || arrange == dofloat) && (c != clients)) {
+ detach(c);
+ if(clients) {
+ clients->prev = c;
+ c->next = clients;
+ }
+ clients = c;
+ }
grabbuttons(c, True);
drawtitle(c);
XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
manage(Window w, XWindowAttributes *wa)
{
unsigned int i;
- Client *c, *tc;
+ Client *c;
Window trans;
XSetWindowAttributes twa;
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 &&
clients = c;
settitle(c);
- arrange(NULL);
+ ban(c);
XMapWindow(dpy, c->win);
XMapWindow(dpy, c->twin);
if(isvisible(c))
focus(c);
+ arrange(NULL);
}
void