JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
changed comment of updatesizehints
[dwm.git] / client.c
index 898b2fc..a02dda5 100644 (file)
--- a/client.c
+++ b/client.c
@@ -156,7 +156,7 @@ manage(Window w, XWindowAttributes *wa) {
        c->w = c->tw = wa->width;
        c->h = wa->height;
        c->th = bh;
-       updatesize(c);
+       updatesizehints(c);
        if(c->x + c->w + 2 * BORDERPX > sw)
                c->x = sw - c->w - 2 * BORDERPX;
        if(c->x < sx)
@@ -256,7 +256,7 @@ resizetitle(Client *c) {
 }
 
 void
-updatesize(Client *c) {
+updatesizehints(Client *c) {
        long msize;
        XSizeHints size;
 
@@ -289,10 +289,6 @@ updatesize(Client *c) {
                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
-               c->grav = NorthWestGravity;
 }
 
 void