]> Dogcows Code - chaz/openbox/commitdiff
MoveResizeTo was broken for opposite edges.
authorMikael Magnusson <mikachu@comhem.se>
Tue, 19 Feb 2008 17:44:49 +0000 (18:44 +0100)
committerMikael Magnusson <mikachu@comhem.se>
Tue, 19 Feb 2008 17:44:49 +0000 (18:44 +0100)
openbox/actions/moveresizeto.c

index 860bf73af33704133fa38c9adc2c1a948b8ee28d..cdd772ad735e8d96cb1ad436b85c769bdfaaa4b7 100644 (file)
@@ -143,13 +143,13 @@ static gboolean run_func(ObActionsData *data, gpointer options)
         x = o->x;
         if (o->xcenter) x = (area->width - w) / 2;
         else if (x == G_MININT) x = c->frame->area.x - carea->x;
-        else if (o->xopposite) x = area->width - w;
+        else if (o->xopposite) x = area->width - w - x;
         x += area->x;
 
         y = o->y;
         if (o->ycenter) y = (area->height - h) / 2;
         else if (y == G_MININT) y = c->frame->area.y - carea->y;
-        else if (o->yopposite) y = area->height - h;
+        else if (o->yopposite) y = area->height - h - y;
         y += area->y;
 
         /* get the client's size back */
This page took 0.025997 seconds and 4 git commands to generate.