From dd41ae98894a1bae63063996ddfa00e2b2936cdf Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 22 Jul 2007 08:25:18 -0400 Subject: [PATCH] for MoveResizeTo, make current the same as not specifying at all --- openbox/actions/moveresizeto.c | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/openbox/actions/moveresizeto.c b/openbox/actions/moveresizeto.c index 75184ea3..3ecf41ad 100644 --- a/openbox/actions/moveresizeto.c +++ b/openbox/actions/moveresizeto.c @@ -33,15 +33,17 @@ static void parse_coord(xmlDocPtr doc, xmlNodePtr n, gint *pos, gboolean *opposite, gboolean *center) { gchar *s = parse_string(doc, n); - if (!g_ascii_strcasecmp(s, "center")) - *center = TRUE; - else { - if (s[0] == '-') - *opposite = TRUE; - if (s[0] == '-' || s[0] == '+') - *pos = atoi(s+1); - else - *pos = atoi(s); + if (g_ascii_strcasecmp(s, "current") != 0) { + if (!g_ascii_strcasecmp(s, "center")) + *center = TRUE; + else { + if (s[0] == '-') + *opposite = TRUE; + if (s[0] == '-' || s[0] == '+') + *pos = atoi(s+1); + else + *pos = atoi(s); + } } g_free(s); } -- 2.45.2