aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Tony Crisci <tony@dubstepdish.com>2016-07-31 18:10:33 -0400
committerLibravatar Tony Crisci <tony@dubstepdish.com>2016-07-31 18:10:33 -0400
commitf78d07d39bb4e401920efb1396cb85d9cadd8adf (patch)
tree2c53f09455cebea9bf5af0eb5bfaff7858b37efe /include
parentMerge pull request #808 from zandrmartin/document-kill-command (diff)
downloadsway-f78d07d39bb4e401920efb1396cb85d9cadd8adf.tar.gz
sway-f78d07d39bb4e401920efb1396cb85d9cadd8adf.tar.zst
sway-f78d07d39bb4e401920efb1396cb85d9cadd8adf.zip
Implement focus handling for containers
The previous implementation of focus handling assumed that only views can be focused. Containers can also be focused with a command like `focus parent` or `focus child`. Change `set_focused_container()` to handle the case of the given container being a container with children and update borders accordingly.
Diffstat (limited to 'include')
-rw-r--r--include/border.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/border.h b/include/border.h
index b629ba46..b61b0f8a 100644
--- a/include/border.h
+++ b/include/border.h
@@ -16,6 +16,11 @@ struct border {
16 */ 16 */
17void border_clear(struct border *border); 17void border_clear(struct border *border);
18 18
19/**
20 * Recursively update all of the borders within a container.
21 */
22void update_container_border(swayc_t *container);
23
19void render_view_borders(wlc_handle view); 24void render_view_borders(wlc_handle view);
20void update_view_border(swayc_t *view); 25void update_view_border(swayc_t *view);
21void map_update_view_border(swayc_t *view, void *data); 26void map_update_view_border(swayc_t *view, void *data);