summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-04-08 16:05:03 -0400
committerLibravatar GitHub <noreply@github.com>2018-04-08 16:05:03 -0400
commit07b6be62144f84539b97ce9d41e9a6c5792deb54 (patch)
treee5031e3e9a86c67bde038523b2d2cbf773a7303e /include
parentMerge pull request #1781 from swaywm/map-to-output (diff)
parent80char (diff)
downloadsway-07b6be62144f84539b97ce9d41e9a6c5792deb54.tar.gz
sway-07b6be62144f84539b97ce9d41e9a6c5792deb54.tar.zst
sway-07b6be62144f84539b97ce9d41e9a6c5792deb54.zip
Merge pull request #1769 from acrisci/focus-inactive-fixes
Focus inactive fixes
Diffstat (limited to 'include')
-rw-r--r--include/sway/input/seat.h16
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);
87struct sway_container *seat_get_focus_inactive(struct sway_seat *seat, 87struct sway_container *seat_get_focus_inactive(struct sway_seat *seat,
88 struct sway_container *container); 88 struct sway_container *container);
89 89
90struct sway_container *seat_get_focus_by_type(struct sway_seat *seat, 90/**
91 struct sway_container *container, enum sway_container_type type); 91 * Descend into the focus stack to find the focus-inactive view. Useful for
92 * container placement when they change position in the tree.
93 */
94struct sway_container *seat_get_focus_inactive_view(struct sway_seat *seat,
95 struct sway_container *container);
96
97/**
98 * Iterate over the focus-inactive children of the container calling the
99 * function on each.
100 */
101void seat_focus_inactive_children_for_each(struct sway_seat *seat,
102 struct sway_container *container,
103 void (*f)(struct sway_container *container, void *data), void *data);
92 104
93void seat_apply_config(struct sway_seat *seat, struct seat_config *seat_config); 105void seat_apply_config(struct sway_seat *seat, struct seat_config *seat_config);
94 106