JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
returning to old bar colorization behavior, like sander proposed for consistency...
[dwm.git] / client.c
index ed8fea9..220d2a0 100644 (file)
--- a/client.c
+++ b/client.c
@@ -202,7 +202,7 @@ manage(Window w, XWindowAttributes *wa) {
        c = emallocz(sizeof(Client));
        c->tags = emallocz(ntags * sizeof(Bool));
        c->win = w;
-       c->border = wa->border_width;
+       c->border = 0;
        c->x = c->tx = wa->x;
        c->y = c->ty = wa->y;
        c->w = c->tw = wa->width;
@@ -232,9 +232,7 @@ manage(Window w, XWindowAttributes *wa) {
        updatetitle(c);
        settags(c, getclient(trans));
        if(!c->isfloat)
-               c->isfloat = trans
-                       || (c->maxw && c->minw &&
-                               c->maxw == c->minw && c->maxh == c->minh);
+               c->isfloat = trans || c->isfixed;
        resizetitle(c);
        if(clients)
                clients->prev = c;
@@ -341,6 +339,8 @@ updatesize(Client *c) {
        }
        else
                c->minw = c->minh = 0;
+       c->isfixed = (c->maxw && c->minw && c->maxh && c->minh &&
+                               c->maxw == c->minw && c->maxh == c->minh);
        if(c->flags & PWinGravity)
                c->grav = size.win_gravity;
        else