diff options
| author | Dana Jansens <danakj@orodu.net> | 2008-02-21 13:24:19 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2008-02-21 13:24:19 -0500 |
| commit | 198d98986bdf224ed29361541d19841339953088 (patch) | |
| tree | e0a588f29ce1f1c3102da4daf05316a15e9a6cea /openbox/actions | |
| parent | 3263845459d15da683b7cab92fb856acbdf2800e (diff) | |
| parent | c49c2a8e408f7482f2b977d6cf97517684476ed7 (diff) | |
Merge branch 'backport' into work
Conflicts:
openbox/openbox.c
openbox/session.c
Diffstat (limited to 'openbox/actions')
| -rw-r--r-- | openbox/actions/execute.c | 6 | ||||
| -rw-r--r-- | openbox/actions/moveresizeto.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/openbox/actions/execute.c b/openbox/actions/execute.c index c534ba8b..ff73bf2b 100644 --- a/openbox/actions/execute.c +++ b/openbox/actions/execute.c @@ -86,7 +86,7 @@ static gboolean run_func(ObActionsData *data, gpointer options) if (!o->cmd) return FALSE; cmd = g_filename_from_utf8(o->cmd, -1, NULL, NULL, NULL); if (!cmd) { - g_message(_("Failed to convert the path '%s' from utf8"), o->cmd); + g_message(_("Failed to convert the path \"%s\" from utf8"), o->cmd); return FALSE; } @@ -95,7 +95,7 @@ static gboolean run_func(ObActionsData *data, gpointer options) event_cancel_all_key_grabs(); if (!g_shell_parse_argv(cmd, NULL, &argv, &e)) { - g_message(_("Failed to execute '%s': %s"), o->cmd, e->message); + g_message(_("Failed to execute \"%s\": %s"), o->cmd, e->message); g_error_free(e); } else { @@ -114,7 +114,7 @@ static gboolean run_func(ObActionsData *data, gpointer options) G_SPAWN_SEARCH_PATH | G_SPAWN_DO_NOT_REAP_CHILD, NULL, NULL, NULL, &e)) { - g_message(_("Failed to execute '%s': %s"), o->cmd, e->message); + g_message(_("Failed to execute \"%s\": %s"), o->cmd, e->message); g_error_free(e); if (o->sn) diff --git a/openbox/actions/moveresizeto.c b/openbox/actions/moveresizeto.c index d355dafd..357c7315 100644 --- a/openbox/actions/moveresizeto.c +++ b/openbox/actions/moveresizeto.c @@ -131,13 +131,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 */ |
