mirror of
https://github.com/swaywm/sway.git
synced 2025-11-10 13:29:51 -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
|
|
@ -553,9 +553,9 @@ static void handle_view_properties_updated(wlc_handle view, uint32_t mask) {
|
|||
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));
|
||||
update_container_border(get_focused_view(p));
|
||||
} else if (c->border_type == B_NORMAL) {
|
||||
update_view_border(c);
|
||||
update_container_border(c);
|
||||
}
|
||||
ipc_event_window(c, "title");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue