diff options
author | Tony Crisci <[email protected]> | 2016-07-31 20:32:40 -0400 |
---|---|---|
committer | Tony Crisci <[email protected]> | 2016-07-31 20:32:40 -0400 |
commit | b39249508f458e302d843c440db8f992e1d545ca (patch) | |
tree | aff103964eb013f246674346fcb6685d593e98bd /sway/handlers.c | |
parent | f78d07d39bb4e401920efb1396cb85d9cadd8adf (diff) |
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.
Diffstat (limited to 'sway/handlers.c')
-rw-r--r-- | sway/handlers.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/handlers.c b/sway/handlers.c index bdcdcaa4..87b7253b 100644 --- a/sway/handlers.c +++ b/sway/handlers.c @@ -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"); } |