for MoveResizeTo, make <x>current</x> the same as not specifying <x/> at all
This commit is contained in:
parent
7d26873a32
commit
dd41ae9889
1 changed files with 11 additions and 9 deletions
|
@ -33,6 +33,7 @@ static void parse_coord(xmlDocPtr doc, xmlNodePtr n, gint *pos,
|
||||||
gboolean *opposite, gboolean *center)
|
gboolean *opposite, gboolean *center)
|
||||||
{
|
{
|
||||||
gchar *s = parse_string(doc, n);
|
gchar *s = parse_string(doc, n);
|
||||||
|
if (g_ascii_strcasecmp(s, "current") != 0) {
|
||||||
if (!g_ascii_strcasecmp(s, "center"))
|
if (!g_ascii_strcasecmp(s, "center"))
|
||||||
*center = TRUE;
|
*center = TRUE;
|
||||||
else {
|
else {
|
||||||
|
@ -43,6 +44,7 @@ static void parse_coord(xmlDocPtr doc, xmlNodePtr n, gint *pos,
|
||||||
else
|
else
|
||||||
*pos = atoi(s);
|
*pos = atoi(s);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
g_free(s);
|
g_free(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue