From: Michael Stapelberg Date: Mon, 17 Jan 2011 13:11:56 +0000 (+0100) Subject: Bugfix: Call mark_unmapped() on floating nodes aswell (Thanks mseed) X-Git-Tag: tree-pr2~117 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d6d4c962f43a57d57afbf9bd8579bffda26cc44e;p=i3%2Fi3 Bugfix: Call mark_unmapped() on floating nodes aswell (Thanks mseed) This fixes #292. --- 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); } }