diff options
| author | Mikael Magnusson <mikachu@comhem.se> | 2008-02-19 18:44:49 +0100 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@comhem.se> | 2008-02-19 18:44:49 +0100 |
| commit | c1257fb4f9c5a17ee8140c8a49c78604604bccc0 (patch) | |
| tree | 8cb64cbd3a404a5f2fd19b988e181a603a9615c3 | |
| parent | 041d17373e046b5ee6667b10c1492bb518bac097 (diff) | |
MoveResizeTo was broken for opposite edges.
| -rw-r--r-- | openbox/actions/moveresizeto.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openbox/actions/moveresizeto.c b/openbox/actions/moveresizeto.c index 860bf73a..cdd772ad 100644 --- a/openbox/actions/moveresizeto.c +++ b/openbox/actions/moveresizeto.c @@ -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 */ |
