From: Michael Stapelberg Date: Wed, 4 Nov 2009 21:12:15 +0000 (+0100) Subject: Apply fix of the previous commit also for columns X-Git-Tag: 3.d~24 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=dd086864cee95199f501371566d299db6932f3f0;p=i3%2Fi3 Apply fix of the previous commit also for columns --- diff --git a/src/table.c b/src/table.c index a9b7b1ec..a4cf2063 100644 --- a/src/table.c +++ b/src/table.c @@ -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); } /*