From 6173c8411784c4eafa304d4675ee818006d277bb Mon Sep 17 00:00:00 2001 From: Guillaume Brogi Date: Fri, 12 Aug 2016 00:10:20 +0200 Subject: [PATCH] Rerender after every split command --- sway/commands.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/sway/commands.c b/sway/commands.c index 541395931..5a5bcd220 100644 --- a/sway/commands.c +++ b/sway/commands.c @@ -2342,15 +2342,15 @@ static struct cmd_results *_do_split(int argc, char **argv, int layout) { arrange_windows(parent, -1, -1); } - // update container title if tabbed/stacked - if (swayc_tabbed_stacked_ancestor(focused)) { - update_container_border(focused); - swayc_t *output = swayc_parent_by_type(focused, C_OUTPUT); - // schedule render to make changes take effect right away, - // otherwise we would have to wait for the view to render, - // which is unpredictable. - wlc_output_schedule_render(output->handle); - } + // update container every time + // if it is tabbed/stacked then the title must change + // if the indicator color is different then the border must change + update_container_border(focused); + swayc_t *output = swayc_parent_by_type(focused, C_OUTPUT); + // schedule render to make changes take effect right away, + // otherwise we would have to wait for the view to render, + // which is unpredictable. + wlc_output_schedule_render(output->handle); return cmd_results_new(CMD_SUCCESS, NULL, NULL); }