commit 66a975038c2f6cc3d2ebb5210d182b0440bc0a88 parent b88f06e70a62722e70855772dcfa5b20b3a10291 Author: Tony Crisci <tony@dubstepdish.com> Date: Tue, 20 Feb 2018 19:01:02 -0500 add doc to sway_seat_get_focus_inactive() Diffstat:
| M | include/sway/input/seat.h | | | 9 | +++++++++ |
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/include/sway/input/seat.h b/include/sway/input/seat.h @@ -58,6 +58,15 @@ void sway_seat_set_focus(struct sway_seat *seat, swayc_t *container); swayc_t *sway_seat_get_focus(struct sway_seat *seat); +/** + * Return the last container to be focused for the seat (or the most recently + * opened if no container has received focused) that is a child of the given + * container. The focus-inactive container of the root window is the focused + * container for the seat (if the seat does have focus). This function can be + * used to determine what container gets focused next if the focused container + * is destroyed, or focus moves to a container with children and we need to + * descend into the next leaf in focus order. + */ swayc_t *sway_seat_get_focus_inactive(struct sway_seat *seat, swayc_t *container); swayc_t *sway_seat_get_focus_by_type(struct sway_seat *seat,