From: Dana Jansens Date: Thu, 31 Jul 2003 19:16:04 +0000 (+0000) Subject: fix a long-lurknig gravity bug X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=c68f0a0f1113e1437dec39b5dc7e223e59fd84c7;p=chaz%2Fopenbox fix a long-lurknig gravity bug --- diff --git a/openbox/frame.c b/openbox/frame.c index a66bef93..19ee3297 100644 --- a/openbox/frame.c +++ b/openbox/frame.c @@ -684,16 +684,16 @@ void frame_frame_gravity(ObFrame *self, int *x, int *y) switch (self->client->gravity) { default: case NorthWestGravity: - case WestGravity: - case SouthWestGravity: - break; case NorthGravity: + case NorthEastGravity: + break; + case WestGravity: case CenterGravity: - case SouthGravity: + case EastGravity: *y += (self->size.top + self->size.bottom) / 2; break; - case NorthEastGravity: - case EastGravity: + case SouthWestGravity: + case SouthGravity: case SouthEastGravity: *y += self->size.top + self->size.bottom; break;