diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-04-08 16:05:03 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-08 16:05:03 -0400 |
commit | 07b6be62144f84539b97ce9d41e9a6c5792deb54 (patch) | |
tree | e5031e3e9a86c67bde038523b2d2cbf773a7303e /include/sway/input | |
parent | 4493761716a37a0ecba596b33cfb7a6dba2d84ba (diff) | |
parent | e7771c507a6f482cc66c482d167af2d2beaff31b (diff) | |
download | sway-07b6be62144f84539b97ce9d41e9a6c5792deb54.tar.xz |
Merge pull request #1769 from acrisci/focus-inactive-fixes
Focus inactive fixes
Diffstat (limited to 'include/sway/input')
-rw-r--r-- | include/sway/input/seat.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/include/sway/input/seat.h b/include/sway/input/seat.h index c7be58b5..ff76841e 100644 --- a/include/sway/input/seat.h +++ b/include/sway/input/seat.h @@ -87,8 +87,20 @@ struct sway_container *seat_get_focus(struct sway_seat *seat); struct sway_container *seat_get_focus_inactive(struct sway_seat *seat, struct sway_container *container); -struct sway_container *seat_get_focus_by_type(struct sway_seat *seat, - struct sway_container *container, enum sway_container_type type); +/** + * Descend into the focus stack to find the focus-inactive view. Useful for + * container placement when they change position in the tree. + */ +struct sway_container *seat_get_focus_inactive_view(struct sway_seat *seat, + struct sway_container *container); + +/** + * Iterate over the focus-inactive children of the container calling the + * function on each. + */ +void seat_focus_inactive_children_for_each(struct sway_seat *seat, + struct sway_container *container, + void (*f)(struct sway_container *container, void *data), void *data); void seat_apply_config(struct sway_seat *seat, struct seat_config *seat_config); |