Bugfix: Don’t attach tiling containers to floating containers

This bug happened when there were only floating containers on a workspace and a
new tiling window was to be opened.
This commit is contained in:
Michael Stapelberg
2010-11-21 16:49:59 +01:00
parent f53fafe100
commit 09b5b17830
3 changed files with 83 additions and 6 deletions

View File

@ -104,6 +104,10 @@ Con *tree_open_con(Con *con) {
* the new container needs to be opened as a leaf of the workspace. */
if (con->type == CT_OUTPUT)
con = focused;
/* If the currently focused container is a floating container, we
* attach the new container to the workspace */
if (con->type == CT_FLOATING_CON)
con = con->parent;
}
assert(con != NULL);