From d6d4c962f43a57d57afbf9bd8579bffda26cc44e Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 17 Jan 2011 14:11:56 +0100 Subject: [PATCH] Bugfix: Call mark_unmapped() on floating nodes aswell (Thanks mseed) This fixes #292. --- src/tree.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/tree.c b/src/tree.c index 3e8be524..721e0b9c 100644 --- a/src/tree.c +++ b/src/tree.c @@ -290,11 +290,10 @@ static void mark_unmapped(Con *con) { TAILQ_FOREACH(current, &(con->nodes_head), nodes) mark_unmapped(current); if (con->type == CT_WORKSPACE) { - TAILQ_FOREACH(current, &(con->floating_head), floating_windows) { - current->mapped = false; - Con *child = TAILQ_FIRST(&(current->nodes_head)); - child->mapped = false; - } + /* We need to call mark_unmapped on floating nodes aswell since we can + * make containers floating. */ + TAILQ_FOREACH(current, &(con->floating_head), floating_windows) + mark_unmapped(current); } } -- 2.39.5