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,8 +86,12 @@ int con_num_children(Con *con);
* a container or when inserting a new container at a specific place in the
* tree.
*
* ignore_focus is to just insert the Con at the end (useful when creating a
* new split container *around* some containers, that is, detaching and
* attaching them in order without wanting to mess with the focus in between).
*
*/
void con_attach(Con *con, Con *parent);
void con_attach(Con *con, Con *parent, bool ignore_focus);
/**
* Detaches the given container from its current parent