]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Call mark_unmapped() on floating nodes aswell (Thanks mseed)
authorMichael Stapelberg <michael@stapelberg.de>
Mon, 17 Jan 2011 13:11:56 +0000 (14:11 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Mon, 17 Jan 2011 13:11:56 +0000 (14:11 +0100)
This fixes #292.

src/tree.c

index 3e8be5247854cf13f5e4cadc4691958824e565b6..721e0b9cee5dc779050676d10912bdbab82569fa 100644 (file)
@@ -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);
     }
 }