mirror of
https://github.com/swaywm/sway.git
synced 2025-11-06 13:29:50 -05:00
Refactor functions to update container borders
Replace `update_view_border()` with `update_container_border()`. The latter should handle both the case where the container is a view or if the container has children.
This commit is contained in:
parent
f78d07d39b
commit
b39249508f
5 changed files with 14 additions and 15 deletions
|
|
@ -2340,7 +2340,7 @@ static struct cmd_results *_do_split(int argc, char **argv, int layout) {
|
|||
|
||||
// update container title if tabbed/stacked
|
||||
if (swayc_tabbed_stacked_ancestor(focused)) {
|
||||
update_view_border(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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue