From c1257fb4f9c5a17ee8140c8a49c78604604bccc0 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Tue, 19 Feb 2008 18:44:49 +0100 Subject: MoveResizeTo was broken for opposite edges. --- openbox/actions/moveresizeto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openbox/actions') 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 */ -- cgit v1.2.3 From 2cb31da22c0a357a2251aabc660e0cc14b215d97 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Thu, 21 Feb 2008 11:57:06 +0100 Subject: Change all single quotes to double quotes in strings. --- openbox/actions/execute.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'openbox/actions') diff --git a/openbox/actions/execute.c b/openbox/actions/execute.c index a857b1b8..24717b56 100644 --- a/openbox/actions/execute.c +++ b/openbox/actions/execute.c @@ -89,7 +89,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; } @@ -98,7 +98,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 { @@ -117,7 +117,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) -- cgit v1.2.3