]> Dogcows Code - chaz/openbox/commitdiff
for MoveResizeTo, make <x>current</x> the same as not specifying <x/> at all
authorDana Jansens <danakj@orodu.net>
Sun, 22 Jul 2007 12:25:18 +0000 (08:25 -0400)
committerDana Jansens <danakj@orodu.net>
Sun, 22 Jul 2007 12:25:18 +0000 (08:25 -0400)
openbox/actions/moveresizeto.c

index 75184ea370fe308acf690fd970c581cbec111f69..3ecf41ad96974ce76e6421eca50724c66c644ebd 100644 (file)
@@ -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);
 }
This page took 0.023143 seconds and 4 git commands to generate.