diff options
author | 2016-07-31 20:32:40 -0400 | |
---|---|---|
committer | 2016-07-31 20:32:40 -0400 | |
commit | b39249508f458e302d843c440db8f992e1d545ca (patch) | |
tree | aff103964eb013f246674346fcb6685d593e98bd /sway/handlers.c | |
parent | Implement focus handling for containers (diff) | |
download | sway-b39249508f458e302d843c440db8f992e1d545ca.tar.gz sway-b39249508f458e302d843c440db8f992e1d545ca.tar.zst sway-b39249508f458e302d843c440db8f992e1d545ca.zip |
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) { | |||
553 | swayc_t *p = swayc_tabbed_stacked_ancestor(c); | 553 | swayc_t *p = swayc_tabbed_stacked_ancestor(c); |
554 | if (p) { | 554 | if (p) { |
555 | // TODO: we only got the topmost tabbed/stacked container, update borders of all containers on the path | 555 | // TODO: we only got the topmost tabbed/stacked container, update borders of all containers on the path |
556 | update_view_border(get_focused_view(p)); | 556 | update_container_border(get_focused_view(p)); |
557 | } else if (c->border_type == B_NORMAL) { | 557 | } else if (c->border_type == B_NORMAL) { |
558 | update_view_border(c); | 558 | update_container_border(c); |
559 | } | 559 | } |
560 | ipc_event_window(c, "title"); | 560 | ipc_event_window(c, "title"); |
561 | } | 561 | } |