mirror of
https://github.com/swaywm/sway.git
synced 2025-11-03 09:01:43 -05:00
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.
This commit is contained in:
parent
a947cb6919
commit
f78d07d39b
3 changed files with 36 additions and 18 deletions
|
|
@ -16,6 +16,11 @@ struct border {
|
|||
*/
|
||||
void border_clear(struct border *border);
|
||||
|
||||
/**
|
||||
* Recursively update all of the borders within a container.
|
||||
*/
|
||||
void update_container_border(swayc_t *container);
|
||||
|
||||
void render_view_borders(wlc_handle view);
|
||||
void update_view_border(swayc_t *view);
|
||||
void map_update_view_border(swayc_t *view, void *data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue