Bugfix: Call mark_unmapped() on floating nodes aswell (Thanks mseed)

This fixes #292.
This commit is contained in:
Michael Stapelberg 2011-01-17 14:11:56 +01:00
parent 92a038dd25
commit d6d4c962f4
1 changed files with 4 additions and 5 deletions

View File

@ -290,11 +290,10 @@ static void mark_unmapped(Con *con) {
TAILQ_FOREACH(current, &(con->nodes_head), nodes) TAILQ_FOREACH(current, &(con->nodes_head), nodes)
mark_unmapped(current); mark_unmapped(current);
if (con->type == CT_WORKSPACE) { if (con->type == CT_WORKSPACE) {
TAILQ_FOREACH(current, &(con->floating_head), floating_windows) { /* We need to call mark_unmapped on floating nodes aswell since we can
current->mapped = false; * make containers floating. */
Con *child = TAILQ_FIRST(&(current->nodes_head)); TAILQ_FOREACH(current, &(con->floating_head), floating_windows)
child->mapped = false; mark_unmapped(current);
}
} }
} }