From 576fdb89ec80cf88847a45e87c990cc2022c12fc Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Mon, 9 Mar 2020 16:38:59 -0400 Subject: [PATCH] removed gravity handling --- manage.c | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/manage.c b/manage.c index a40764d..eb0caba 100644 --- a/manage.c +++ b/manage.c @@ -154,13 +154,6 @@ manage(Client * c, int mapped) /* Use the specified window position. */ c->size.x = x; c->size.y = y; - - /* - * We need to be careful of the right-hand edge and - * bottom. We can use the window gravity (if specified) - * to handle this. (See section 4.1.2.3 of the ICCCM.) - */ - applyGravity(c); } } @@ -219,25 +212,6 @@ manage(Client * c, int mapped) Client_SetState(c, NormalState); } -static void -applyGravity(Client *c) { - if (c->framed == False) return; /* only required for framed windows*/ - if (c->size.flags & PWinGravity) { - switch (c->size.win_gravity) { - case NorthEastGravity: - c->size.x -= 2 * border; - break; - case SouthWestGravity: - c->size.y -= 2 * border; - break; - case SouthEastGravity: - c->size.x -= 2 * border; - c->size.y -= 2 * border; - break; - } - } -} - static int getProperty(Window w, Atom a, Atom type, long len, unsigned char **p) { Atom real_type; -- 2.55.0