about summary refs log tree commit diff stats
path: root/client.c
diff options
context:
space:
mode:
authorarg@mig29 <unknown>2006-12-11 16:45:02 +0100
committerarg@mig29 <unknown>2006-12-11 16:45:02 +0100
commit629647dfee4251fc4856b70658dff35cf5634057 (patch)
tree0ea4d09bb735784c404f14facfabead470b7ef7b /client.c
parent4ca3d861f024d17aeee28744f935fd55dd89a285 (diff)
downloaddwm-629647dfee4251fc4856b70658dff35cf5634057.tar.gz
removed gravitate for the moment
Diffstat (limited to 'client.c')
-rw-r--r--client.c55
1 files changed, 1 insertions, 54 deletions
diff --git a/client.c b/client.c
index d691340..898b2fc 100644
--- a/client.c
+++ b/client.c
@@ -132,59 +132,6 @@ getctitle(Window w) {
 }
 
 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)
 		return;
@@ -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);
 }