This parameter is no longer needed.

The algorithm is now always the same, doesn't matter if we're
adding or removing a container to/from its parent.
This commit is contained in:
Fernando Tarlá Cardoso Lemos
2011-01-25 22:12:43 -02:00
committed by Michael Stapelberg
parent 45227fba54
commit bc82fc7e9f
4 changed files with 6 additions and 7 deletions

View File

@ -68,7 +68,7 @@ void floating_enable(Con *con, bool automatic) {
TAILQ_REMOVE(&(con->parent->nodes_head), con, nodes);
TAILQ_REMOVE(&(con->parent->focus_head), con, focused);
con_fix_percent(con->parent, WINDOW_REMOVE);
con_fix_percent(con->parent);
/* 2: create a new container to render the decoration on, add
* it as a floating window to the workspace */
@ -155,7 +155,7 @@ void floating_disable(Con *con, bool automatic) {
con->floating = FLOATING_USER_OFF;
con_fix_percent(con->parent, WINDOW_ADD);
con_fix_percent(con->parent);
// TODO: dont influence focus handling when Con was not focused before.
con_focus(con);
}