Bugfix: Re-attach windows in correct order when switching layout (Thanks fernandotcl)

This commit is contained in:
Michael Stapelberg
2010-11-28 01:51:16 +01:00
parent d0de3f403d
commit 3bab222aa7
4 changed files with 25 additions and 15 deletions

View File

@ -86,7 +86,7 @@ void tree_init() {
ws->num = c;
asprintf(&(ws->name), "%d", c);
c++;
con_attach(ws, oc);
con_attach(ws, oc, false);
asprintf(&name, "[i3 con] workspace %s", ws->name);
x_set_name(ws, name);
@ -269,7 +269,7 @@ void tree_split(Con *con, orientation_t orientation) {
new->orientation = orientation;
/* 3: add it as a child to the new Con */
con_attach(con, new);
con_attach(con, new, false);
}
/*