]> git.sur5r.net Git - i3/i3/blobdiff - src/restore_layout.c
Bugfix: insert id-based match at HEAD, not TAIL.
[i3/i3] / src / restore_layout.c
index 3a657c90bf4123de34315aa6f66aab4c76d6997f..f4ef54754419cc71414ceadfe9c357403ee76011 100644 (file)
@@ -219,7 +219,7 @@ static void open_placeholder_window(Con *con) {
         Match *temp_id = smalloc(sizeof(Match));
         match_init(temp_id);
         temp_id->id = placeholder;
-        TAILQ_INSERT_TAIL(&(con->swallow_head), temp_id, matches);
+        TAILQ_INSERT_HEAD(&(con->swallow_head), temp_id, matches);
     }
 
     Con *child;