fix a long-lurknig gravity bug

This commit is contained in:
Dana Jansens 2003-07-31 19:16:04 +00:00
parent 336cef8006
commit c68f0a0f11

View file

@ -684,16 +684,16 @@ void frame_frame_gravity(ObFrame *self, int *x, int *y)
switch (self->client->gravity) { switch (self->client->gravity) {
default: default:
case NorthWestGravity: case NorthWestGravity:
case WestGravity:
case SouthWestGravity:
break;
case NorthGravity: case NorthGravity:
case NorthEastGravity:
break;
case WestGravity:
case CenterGravity: case CenterGravity:
case SouthGravity: case EastGravity:
*y += (self->size.top + self->size.bottom) / 2; *y += (self->size.top + self->size.bottom) / 2;
break; break;
case NorthEastGravity: case SouthWestGravity:
case EastGravity: case SouthGravity:
case SouthEastGravity: case SouthEastGravity:
*y += self->size.top + self->size.bottom; *y += self->size.top + self->size.bottom;
break; break;