From dd086864cee95199f501371566d299db6932f3f0 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Wed, 4 Nov 2009 22:12:15 +0100 Subject: [PATCH] Apply fix of the previous commit also for columns --- src/table.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); } /* -- 2.39.5