]> git.sur5r.net Git - i3/i3/commitdiff
Apply fix of the previous commit also for columns
authorMichael Stapelberg <michael@stapelberg.de>
Wed, 4 Nov 2009 21:12:15 +0000 (22:12 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 4 Nov 2009 21:12:15 +0000 (22:12 +0100)
src/table.c

index a9b7b1ecfd0bf28098ac5098c45b5882dc77ac43..a4cf206388738671831dea658c88c26ff2b80e51 100644 (file)
@@ -131,8 +131,12 @@ void expand_table_cols(Workspace *workspace) {
 
         workspace->table = realloc(workspace->table, sizeof(Container**) * workspace->cols);
         workspace->table[workspace->cols-1] = calloc(sizeof(Container*) * workspace->rows, 1);
+
+        for (int c = 0; c < workspace->rows; c++)
+                new_container(workspace, &(workspace->table[workspace->cols-1][c]), workspace->cols-1, c, true);
+
         for (int c = 0; c < workspace->rows; c++)
-                new_container(workspace, &(workspace->table[workspace->cols-1][c]), workspace->cols-1, c, false);
+                switch_layout_mode(global_conn, workspace->table[workspace->cols-1][c], config.container_mode);
 }
 
 /*