dwm-meillo

diff client.c @ 630:264f02dd2ad0

removed gravitate for the moment
author arg@mig29
date Mon, 11 Dec 2006 16:45:02 +0100
parents 58851a8806b9
children d6fbb669fef2
line diff
     1.1 --- a/client.c	Mon Dec 11 09:42:16 2006 +0100
     1.2 +++ b/client.c	Mon Dec 11 16:45:02 2006 +0100
     1.3 @@ -132,59 +132,6 @@
     1.4  }
     1.5  
     1.6  void
     1.7 -gravitate(Client *c, Bool invert) {
     1.8 -	int dx = 0, dy = 0;
     1.9 -
    1.10 -	return;
    1.11 -	switch(c->grav) {
    1.12 -	default:
    1.13 -		break;
    1.14 -	case StaticGravity:
    1.15 -	case NorthWestGravity:
    1.16 -	case NorthGravity:
    1.17 -	case NorthEastGravity:
    1.18 -		dy = c->border;
    1.19 -		break;
    1.20 -	case EastGravity:
    1.21 -	case CenterGravity:
    1.22 -	case WestGravity:
    1.23 -		dy = -(c->h / 2) + c->border;
    1.24 -		break;
    1.25 -	case SouthEastGravity:
    1.26 -	case SouthGravity:
    1.27 -	case SouthWestGravity:
    1.28 -		dy = -(c->h);
    1.29 -		break;
    1.30 -	}
    1.31 -	switch (c->grav) {
    1.32 -	default:
    1.33 -		break;
    1.34 -	case StaticGravity:
    1.35 -	case NorthWestGravity:
    1.36 -	case WestGravity:
    1.37 -	case SouthWestGravity:
    1.38 -		dx = c->border;
    1.39 -		break;
    1.40 -	case NorthGravity:
    1.41 -	case CenterGravity:
    1.42 -	case SouthGravity:
    1.43 -		dx = -(c->w / 2) + c->border;
    1.44 -		break;
    1.45 -	case NorthEastGravity:
    1.46 -	case EastGravity:
    1.47 -	case SouthEastGravity:
    1.48 -		dx = -(c->w + c->border);
    1.49 -		break;
    1.50 -	}
    1.51 -	if(invert) {
    1.52 -		dx = -dx;
    1.53 -		dy = -dy;
    1.54 -	}
    1.55 -	c->x += dx;
    1.56 -	c->y += dy;
    1.57 -}
    1.58 -
    1.59 -void
    1.60  killclient(Arg *arg) {
    1.61  	if(!sel)
    1.62  		return;
    1.63 @@ -291,7 +238,7 @@
    1.64  	else
    1.65  		wc.border_width = BORDERPX;
    1.66  	XConfigureWindow(dpy, c->win, CWX | CWY | CWWidth | CWHeight | CWBorderWidth, &wc);
    1.67 -	/*configure(c);*/
    1.68 +	configure(c);
    1.69  	XSync(dpy, False);
    1.70  }
    1.71