Introduction
Introduction Statistics Contact Development Disclaimer Help
tremoved gravitate for the moment - dwm - [fork] customized build of dwm, the d…
git clone git://src.adamsgaard.dk/dwm
Log
Files
Refs
README
LICENSE
---
commit 629647dfee4251fc4856b70658dff35cf5634057
parent 4ca3d861f024d17aeee28744f935fd55dd89a285
Author: arg@mig29 <unknown>
Date: Mon, 11 Dec 2006 16:45:02 +0100
removed gravitate for the moment
Diffstat:
M client.c | 55 +----------------------------…
M dwm.h | 1 -
M event.c | 2 --
3 files changed, 1 insertion(+), 57 deletions(-)
---
diff --git a/client.c b/client.c
t@@ -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;
t@@ -291,7 +238,7 @@ resize(Client *c, Bool sizehints, Corner sticky) {
else
wc.border_width = BORDERPX;
XConfigureWindow(dpy, c->win, CWX | CWY | CWWidth | CWHeight | CWBorde…
- /*configure(c);*/
+ configure(c);
XSync(dpy, False);
}
diff --git a/dwm.h b/dwm.h
t@@ -114,7 +114,6 @@ extern void configure(Client *c); /* send s…
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 w…
-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 clie…
extern void resize(Client *c, Bool sizehints, Corner sticky); /* resize c*/
diff --git a/event.c b/event.c
t@@ -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)
t@@ -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;
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.