aboutsummaryrefslogtreecommitdiff
path: root/sway/commands.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2016-08-11 18:21:58 -0400
committerGitHub <noreply@github.com>2016-08-11 18:21:58 -0400
commit420fa20ae63cf010b0849ca11a96e67d54ffb0bc (patch)
tree611e81b897ae6a45517f2447dbec005c872750a2 /sway/commands.c
parent5c87cc7cb190fbc1ed2a8e8e9d10208a6384e21c (diff)
parent7bbf7e15a0cd931c4997b9d1337bdf435f51ebe0 (diff)
Merge pull request #853 from guiniol/indicator-color
Implement indicator color
Diffstat (limited to 'sway/commands.c')
-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) {
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);
}