equal
deleted
inserted
replaced
863 } |
863 } |
864 |
864 |
865 void |
865 void |
866 manage(Window w, XWindowAttributes *wa) { |
866 manage(Window w, XWindowAttributes *wa) { |
867 Client *c, *t = NULL; |
867 Client *c, *t = NULL; |
868 Window trans = 0; |
868 Window trans = None; |
869 XWindowChanges wc; |
869 XWindowChanges wc; |
870 |
870 |
871 if(!(c = calloc(1, sizeof(Client)))) |
871 if(!(c = calloc(1, sizeof(Client)))) |
872 die("fatal: could not calloc() %u bytes\n", sizeof(Client)); |
872 die("fatal: could not calloc() %u bytes\n", sizeof(Client)); |
873 c->win = w; |
873 c->win = w; |
907 if(t) |
907 if(t) |
908 c->tags = t->tags; |
908 c->tags = t->tags; |
909 else |
909 else |
910 applyrules(c); |
910 applyrules(c); |
911 if(!c->isfloating) |
911 if(!c->isfloating) |
912 c->isfloating = trans || c->isfixed; |
912 c->isfloating = trans != None || c->isfixed; |
913 if(c->isfloating) |
913 if(c->isfloating) |
914 XRaiseWindow(dpy, c->win); |
914 XRaiseWindow(dpy, c->win); |
915 attach(c); |
915 attach(c); |
916 attachstack(c); |
916 attachstack(c); |
917 XMoveResizeWindow(dpy, c->win, c->x + 2 * sw, c->y, c->w, c->h); /* some windows require this */ |
917 XMoveResizeWindow(dpy, c->win, c->x + 2 * sw, c->y, c->w, c->h); /* some windows require this */ |