]> Dogcows Code - chaz/openbox/blobdiff - plugins/placement/placement.c
let transients go where they requested :( fuck xmms
[chaz/openbox] / plugins / placement / placement.c
index d03fb4b361735879e4ea9352b96cb16e01e731dc..48cf5de3201942876e9911a6f4e1bb8884bc773d 100644 (file)
@@ -63,9 +63,9 @@ static void event(ObEvent *e, void *foo)
         if (e->data.c.client->transient_for != OB_TRAN_GROUP) {
             ObClient *c = e->data.c.client;
             ObClient *p = e->data.c.client->transient_for;
-            int x = (c->frame->area.width - p->frame->area.width) / 2 +
+            int x = (p->frame->area.width - c->frame->area.width) / 2 +
                 p->frame->area.x;
-            int y = (c->frame->area.height - p->frame->area.height) / 2 +
+            int y = (p->frame->area.height - c->frame->area.height) / 2 +
                 p->frame->area.y;
             client_configure(c, OB_CORNER_TOPLEFT, x, y,
                              c->area.width, c->area.height,
This page took 0.021129 seconds and 4 git commands to generate.