fix a long-lurknig gravity bug
This commit is contained in:
parent
336cef8006
commit
c68f0a0f11
1 changed files with 6 additions and 6 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue