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.
This commit is contained in:
parent
568cafd4ec
commit
07eb20851f
|
@ -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 GIMP’s color picker window) get mapped
|
||||
|
|
Loading…
Reference in New Issue