/* 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);
}
}
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;