oc->type = CT_OUTPUT;
oc->rect = output->rect;
+ char *name;
+ asprintf(&name, "[i3 con] output %s", oc->name);
+ x_set_name(oc, name);
+ free(name);
+
/* add a workspace to this output */
ws = con_new(oc);
ws->type = CT_WORKSPACE;
asprintf(&(ws->name), "%d", c);
c++;
+
+ asprintf(&name, "[i3 con] workspace %s", ws->name);
+ x_set_name(ws, name);
+ free(name);
+
ws->fullscreen_mode = CF_OUTPUT;
ws->orientation = HORIZ;
}
/* if we are in a container whose parent contains only one
* child and has the same orientation like we are trying to
* set, this operation is a no-op to not confuse the user */
- if (parent->orientation == orientation &&
+ if (con_orientation(parent) == orientation &&
TAILQ_NEXT(con, nodes) == TAILQ_END(&(parent->nodes_head))) {
DLOG("Not splitting the same way again\n");
return;
while (!TAILQ_EMPTY(&(next->focus_head)))
next = TAILQ_FIRST(&(next->focus_head));
+ DLOG("focusing %p\n", next);
con_focus(next);
}