diff options
author | 2016-08-11 18:21:58 -0400 | |
---|---|---|
committer | 2016-08-11 18:21:58 -0400 | |
commit | 420fa20ae63cf010b0849ca11a96e67d54ffb0bc (patch) | |
tree | 611e81b897ae6a45517f2447dbec005c872750a2 /sway/commands.c | |
parent | Merge pull request #851 from thejan2009/output-disable-during-runtime (diff) | |
parent | Update man page (diff) | |
download | sway-420fa20ae63cf010b0849ca11a96e67d54ffb0bc.tar.gz sway-420fa20ae63cf010b0849ca11a96e67d54ffb0bc.tar.zst sway-420fa20ae63cf010b0849ca11a96e67d54ffb0bc.zip |
Merge pull request #853 from guiniol/indicator-color
Implement indicator color
Diffstat (limited to 'sway/commands.c')
-rw-r--r-- | sway/commands.c | 18 |
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 | } |