X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=client.c;h=81102635d073981da0177a168aea0ca72cc301f5;hb=6096f8a11312261f016d49b1cb2e4c2cdc7fdbc1;hp=898b2fc50fed671623d64c73692f3b8c3d1e5096;hpb=629647dfee4251fc4856b70658dff35cf5634057;p=dwm.git diff --git a/client.c b/client.c index 898b2fc..8110263 100644 --- a/client.c +++ b/client.c @@ -1,4 +1,4 @@ -/* (C)opyright MMVI Anselm R. Garbe +/* (C)opyright MMVI-MMVII Anselm R. Garbe * See LICENSE file for license details. */ #include "dwm.h" @@ -96,7 +96,7 @@ focus(Client *c) { sel = c; if(old) { grabbuttons(old, False); - drawtitle(old); + drawclient(old); } } if(c) { @@ -104,7 +104,7 @@ focus(Client *c) { c->snext = stack; stack = c; grabbuttons(c, True); - drawtitle(c); + drawclient(c); XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime); } else @@ -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