about summary refs log tree commit diff stats
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
parent4ca3d861f024d17aeee28744f935fd55dd89a285 (diff)
downloaddwm-629647dfee4251fc4856b70658dff35cf5634057.tar.gz
removed gravitate for the moment
-rw-r--r--client.c55
-rw-r--r--dwm.h1
-rw-r--r--event.c2
3 files changed, 1 insertions, 57 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);
 }
 
diff --git a/dwm.h b/dwm.h
index 2def8f2..773736d 100644
--- a/dwm.h
+++ b/dwm.h
@@ -114,7 +114,6 @@ extern void configure(Client *c);		/* send synthetic configure event */
 extern void focus(Client *c);			/* focus c, c may be NULL */
 extern Client *getclient(Window w);		/* return client of w */
 extern Client *getctitle(Window w);		/* return client of title window */
-extern void gravitate(Client *c, Bool invert);	/* gravitate c */
 extern void killclient(Arg *arg);		/* kill c nicely */
 extern void manage(Window w, XWindowAttributes *wa);	/* manage new client */
 extern void resize(Client *c, Bool sizehints, Corner sticky); /* resize c*/
diff --git a/event.c b/event.c
index 4e11552..72595b2 100644
--- a/event.c
+++ b/event.c
@@ -161,7 +161,6 @@ configurerequest(XEvent *e) {
 
 	if((c = getclient(ev->window))) {
 		c->ismax = False;
-		gravitate(c, True);
 		if(ev->value_mask & CWX)
 			c->x = ev->x;
 		if(ev->value_mask & CWY)
@@ -172,7 +171,6 @@ configurerequest(XEvent *e) {
 			c->h = ev->height;
 		if(ev->value_mask & CWBorderWidth)
 			c->border = ev->border_width;
-		gravitate(c, False);
 		wc.x = c->x;
 		wc.y = c->y;
 		wc.width = c->w;
revious revision' href='/akkartik/mu/blame/cpp/029string?h=hlt&id=f3bce7176bc15ec04739c61db0d189cbaaaca7d8'>^
66b97b4d ^
7a9b05fa ^
66b97b4d ^

66b97b4d ^


7a9b05fa ^


66b97b4d ^


5e21a9f6 ^
7a9b05fa ^













88be3dbc ^
3d6c13dc ^
e3fa6cc7 ^
3d6c13dc ^

c51043ab ^







4f5cf668 ^
c51043ab ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78