From 629647dfee4251fc4856b70658dff35cf5634057 Mon Sep 17 00:00:00 2001 From: "arg@mig29" Date: Mon, 11 Dec 2006 16:45:02 +0100 Subject: removed gravitate for the moment --- client.c | 55 +------------------------------------------------------ 1 file changed, 1 insertion(+), 54 deletions(-) (limited to 'client.c') diff --git a/client.c b/client.c index d6913401..898b2fc5 100644 --- a/client.c +++ b/client.c @@ -131,59 +131,6 @@ getctitle(Window w) { return NULL; } -void -gravitate(Client *c, Bool invert) { - int dx = 0, dy = 0; - - return; - switch(c->grav) { - default: - break; - case StaticGravity: - case NorthWestGravity: - case NorthGravity: - case NorthEastGravity: - dy = c->border; - break; - case EastGravity: - case CenterGravity: - case WestGravity: - dy = -(c->h / 2) + c->border; - break; - case SouthEastGravity: - case SouthGravity: - case SouthWestGravity: - dy = -(c->h); - break; - } - switch (c->grav) { - default: - break; - case StaticGravity: - case NorthWestGravity: - case WestGravity: - case SouthWestGravity: - dx = c->border; - break; - case NorthGravity: - case CenterGravity: - case SouthGravity: - dx = -(c->w / 2) + c->border; - break; - case NorthEastGravity: - case EastGravity: - case SouthEastGravity: - dx = -(c->w + c->border); - break; - } - if(invert) { - dx = -dx; - dy = -dy; - } - c->x += dx; - c->y += dy; -} - void killclient(Arg *arg) { if(!sel) @@ -291,7 +238,7 @@ resize(Client *c, Bool sizehints, Corner sticky) { else wc.border_width = BORDERPX; XConfigureWindow(dpy, c->win, CWX | CWY | CWWidth | CWHeight | CWBorderWidth, &wc); - /*configure(c);*/ + configure(c); XSync(dpy, False); } -- cgit v1.2.3