From 07eb20851f245dd1cef26195bc0319fefa3b572f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fernando=20Tarl=C3=A1=20Cardoso=20Lemos?= Date: Tue, 25 Jan 2011 22:23:18 -0200 Subject: [PATCH] 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. --- src/floating.c | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.5