mirror of
https://github.com/swaywm/sway.git
synced 2024-11-14 06:24:20 +01:00
Rerender after every split command
This commit is contained in:
parent
fc492a4da8
commit
6173c84117
@ -2342,15 +2342,15 @@ static struct cmd_results *_do_split(int argc, char **argv, int layout) {
|
|||||||
arrange_windows(parent, -1, -1);
|
arrange_windows(parent, -1, -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// update container title if tabbed/stacked
|
// update container every time
|
||||||
if (swayc_tabbed_stacked_ancestor(focused)) {
|
// if it is tabbed/stacked then the title must change
|
||||||
update_container_border(focused);
|
// if the indicator color is different then the border must change
|
||||||
swayc_t *output = swayc_parent_by_type(focused, C_OUTPUT);
|
update_container_border(focused);
|
||||||
// schedule render to make changes take effect right away,
|
swayc_t *output = swayc_parent_by_type(focused, C_OUTPUT);
|
||||||
// otherwise we would have to wait for the view to render,
|
// schedule render to make changes take effect right away,
|
||||||
// which is unpredictable.
|
// otherwise we would have to wait for the view to render,
|
||||||
wlc_output_schedule_render(output->handle);
|
// which is unpredictable.
|
||||||
}
|
wlc_output_schedule_render(output->handle);
|
||||||
|
|
||||||
return cmd_results_new(CMD_SUCCESS, NULL, NULL);
|
return cmd_results_new(CMD_SUCCESS, NULL, NULL);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user