]> Dogcows Code - chaz/openbox/commitdiff
fix a long-lurknig gravity bug
authorDana Jansens <danakj@orodu.net>
Thu, 31 Jul 2003 19:16:04 +0000 (19:16 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 31 Jul 2003 19:16:04 +0000 (19:16 +0000)
openbox/frame.c

index a66bef93b2106c2cf3dd9e70d3b3fcd85ef8ad9d..19ee3297f2b4d6aeb594da389b0e8ca773b2b7de 100644 (file)
@@ -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;
This page took 0.029623 seconds and 4 git commands to generate.