summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Guillaume Brogi <gui-gui@netcourrier.com>2016-08-12 00:10:20 +0200
committerLibravatar Guillaume Brogi <gui-gui@netcourrier.com>2016-08-12 00:12:56 +0200
commit6173c8411784c4eafa304d4675ee818006d277bb (patch)
treeeccaf3c659dfd8794fca58b6d6c97b52d110885f
parentAdd support for indicator color (diff)
downloadsway-6173c8411784c4eafa304d4675ee818006d277bb.tar.gz
sway-6173c8411784c4eafa304d4675ee818006d277bb.tar.zst
sway-6173c8411784c4eafa304d4675ee818006d277bb.zip
Rerender after every split command
-rw-r--r--sway/commands.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/sway/commands.c b/sway/commands.c
index 54139593..5a5bcd22 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) {
2342 arrange_windows(parent, -1, -1); 2342 arrange_windows(parent, -1, -1);
2343 } 2343 }
2344 2344
2345 // update container title if tabbed/stacked 2345 // update container every time
2346 if (swayc_tabbed_stacked_ancestor(focused)) { 2346 // if it is tabbed/stacked then the title must change
2347 update_container_border(focused); 2347 // if the indicator color is different then the border must change
2348 swayc_t *output = swayc_parent_by_type(focused, C_OUTPUT); 2348 update_container_border(focused);
2349 // schedule render to make changes take effect right away, 2349 swayc_t *output = swayc_parent_by_type(focused, C_OUTPUT);
2350 // otherwise we would have to wait for the view to render, 2350 // schedule render to make changes take effect right away,
2351 // which is unpredictable. 2351 // otherwise we would have to wait for the view to render,
2352 wlc_output_schedule_render(output->handle); 2352 // which is unpredictable.
2353 } 2353 wlc_output_schedule_render(output->handle);
2354 2354
2355 return cmd_results_new(CMD_SUCCESS, NULL, NULL); 2355 return cmd_results_new(CMD_SUCCESS, NULL, NULL);
2356} 2356}