mirror of
https://github.com/swaywm/sway.git
synced 2025-11-10 13:29:51 -05:00
refactor swayc_tabbed_stacked_parent into _ancestor and _parent and use where needed
This commit is contained in:
parent
7aeedf0264
commit
ad7605675e
7 changed files with 24 additions and 7 deletions
|
|
@ -523,8 +523,9 @@ static void handle_view_properties_updated(wlc_handle view, uint32_t mask) {
|
|||
if (!c->name || strcmp(c->name, new_name) != 0) {
|
||||
free(c->name);
|
||||
c->name = strdup(new_name);
|
||||
swayc_t *p = swayc_tabbed_stacked_parent(c);
|
||||
swayc_t *p = swayc_tabbed_stacked_ancestor(c);
|
||||
if (p) {
|
||||
// TODO: we only got the topmost tabbed/stacked container, update borders of all containers on the path
|
||||
update_view_border(get_focused_view(p));
|
||||
} else if (c->border_type == B_NORMAL) {
|
||||
update_view_border(c);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue