From: Fernando Tarlá Cardoso Lemos Date: Wed, 26 Jan 2011 00:23:18 +0000 (-0200) Subject: Fix floating mode according to the new requirements. X-Git-Tag: tree-pr2~101 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=07eb20851f245dd1cef26195bc0319fefa3b572f;p=i3%2Fi3 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. --- diff --git a/src/floating.c b/src/floating.c index 89350f94..9e1637ab 100644 --- a/src/floating.c +++ b/src/floating.c @@ -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