dwm-meillo
changeset 630:264f02dd2ad0
removed gravitate for the moment
author | arg@mig29 |
---|---|
date | Mon, 11 Dec 2006 16:45:02 +0100 |
parents | 58851a8806b9 |
children | d6fbb669fef2 |
files | client.c dwm.h event.c |
diffstat | 3 files changed, 1 insertions(+), 57 deletions(-) [+] |
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
2.1 --- a/dwm.h Mon Dec 11 09:42:16 2006 +0100 2.2 +++ b/dwm.h Mon Dec 11 16:45:02 2006 +0100 2.3 @@ -114,7 +114,6 @@ 2.4 extern void focus(Client *c); /* focus c, c may be NULL */ 2.5 extern Client *getclient(Window w); /* return client of w */ 2.6 extern Client *getctitle(Window w); /* return client of title window */ 2.7 -extern void gravitate(Client *c, Bool invert); /* gravitate c */ 2.8 extern void killclient(Arg *arg); /* kill c nicely */ 2.9 extern void manage(Window w, XWindowAttributes *wa); /* manage new client */ 2.10 extern void resize(Client *c, Bool sizehints, Corner sticky); /* resize c*/
3.1 --- a/event.c Mon Dec 11 09:42:16 2006 +0100 3.2 +++ b/event.c Mon Dec 11 16:45:02 2006 +0100 3.3 @@ -161,7 +161,6 @@ 3.4 3.5 if((c = getclient(ev->window))) { 3.6 c->ismax = False; 3.7 - gravitate(c, True); 3.8 if(ev->value_mask & CWX) 3.9 c->x = ev->x; 3.10 if(ev->value_mask & CWY) 3.11 @@ -172,7 +171,6 @@ 3.12 c->h = ev->height; 3.13 if(ev->value_mask & CWBorderWidth) 3.14 c->border = ev->border_width; 3.15 - gravitate(c, False); 3.16 wc.x = c->x; 3.17 wc.y = c->y; 3.18 wc.width = c->w;