When making floating cons tiling, re-insert next to the next focused *tiling* con (Thanks mseed)

Fixes: #337 and #350
This commit is contained in:
Michael Stapelberg
2011-03-14 23:50:29 +01:00
parent 76e978bfb3
commit b484ed5f9d
3 changed files with 38 additions and 1 deletions

View File

@ -175,7 +175,8 @@ void floating_disable(Con *con, bool automatic) {
/* 3: re-attach to the parent of the currently focused con on the workspace
* this floating con was on */
Con *focused = con_descend_focused(con_get_workspace(con));
Con *focused = con_descend_tiling_focused(con_get_workspace(con));
/* if there is no other container on this workspace, focused will be the
* workspace itself */
if (focused->type == CT_WORKSPACE)