settings->pos_given = FALSE;
if ((n = parse_find_node("position", app->children))) {
if ((c = parse_find_node("x", n->children))) {
- str *s = parse_string(doc, c);
+ gchar *s = parse_string(doc, c);
if (!strcmp(s, "center")) {
settings->center_x = TRUE;
x_pos_given = TRUE;
}
if (x_pos_given && (c = parse_find_node("y", n->children))) {
- str *s = parse_string(doc, c);
+ gchar *s = parse_string(doc, c);
if (!strcmp(s, "center")) {
settings->center_y = TRUE;
settings->pos_given = TRUE;
settings->focus = parse_bool(doc, n);
if ((n = parse_find_node("desktop", app->children))) {
- str *s = parse_string(doc, n);
+ gchar *s = parse_string(doc, n);
if (!strcmp(s, "all"))
settings->desktop = DESKTOP_ALL;
else
* desktops */
if ((n = parse_find_node("head", app->children))) {
- str *s = parse_string(doc, n);
+ gchar *s = parse_string(doc, n);
if (!strcmp(s, "mouse"))
settings->head = -1;
else
settings->layer = -2;
if ((n = parse_find_node("layer", app->children))) {
- str *s = parse_string(doc, n);
+ gchar *s = parse_string(doc, n);
if (!strcmp(s, "above"))
settings->layer = 1;
else if (!strcmp(s, "below"))
settings->max_horz = -1;
settings->max_vert = -1;
if ((n = parse_find_node("maximized", app->children))) {
- str *s = parse_string(doc, n);
+ gchar *s = parse_string(doc, n);
if (!strcmp(s, "horizontal")) {
settings->max_horz = TRUE;
settings->max_vert = FALSE;