From ae049449af97e4cf6376a7b9d92c8e97f2b45c34 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sun, 22 Jan 2012 17:24:55 +0000 Subject: [PATCH] force rendering in more cases --- src/tree.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/tree.c b/src/tree.c index bc546867..7e632100 100644 --- a/src/tree.c +++ b/src/tree.c @@ -342,13 +342,16 @@ void tree_split(Con *con, orientation_t orientation) { } Con *parent = con->parent; + + /* Force re-rendering to make the indicator border visible. */ + FREE(con->deco_render_params); + FREE(parent->deco_render_params); + /* if we are in a container whose parent contains only one * child (its split functionality is unused so far), we just change the * orientation (more intuitive than splitting again) */ if (con_num_children(parent) == 1) { parent->orientation = orientation; - FREE(con->deco_render_params); - FREE(parent->deco_render_params); DLOG("Just changing orientation of existing container\n"); return; } -- 2.39.2