Fix floating mode according to the new requirements.

At all times any given non-leaf container should have the sum of
the percentages of its children == 1.0, otherwise we'll crash on
an assertion failure.
next
Fernando Tarlá Cardoso Lemos 2011-01-25 22:23:18 -02:00 committed by Michael Stapelberg
parent 568cafd4ec
commit 07eb20851f
1 changed files with 1 additions and 0 deletions

View File

@ -102,6 +102,7 @@ void floating_enable(Con *con, bool automatic) {
/* 3: attach the child to the new parent container */
con->parent = nc;
con->percent = 1.0;
con->floating = FLOATING_USER_ON;
/* Some clients (like GIMPs color picker window) get mapped