diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-07-26 22:58:42 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-07-28 22:41:04 +1000 |
commit | da2a87f6c71bfe90a4d77542bfc7ed22899f67be (patch) | |
tree | 76cb0dcdd9006bbec11321645e096ea47cd79e82 /include | |
parent | Operate on floating split container when a child is focused (diff) | |
download | sway-da2a87f6c71bfe90a4d77542bfc7ed22899f67be.tar.gz sway-da2a87f6c71bfe90a4d77542bfc7ed22899f67be.tar.zst sway-da2a87f6c71bfe90a4d77542bfc7ed22899f67be.zip |
When unfloating, return container to previously focused tiled container
This introduces seat_get_focus_inactive_tiling and updates
`focus mode_toggle` to use it instead, because the previous method
wasn't guaranteed to return a tiling view.
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/input/seat.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sway/input/seat.h b/include/sway/input/seat.h index ab25788f..07febe2c 100644 --- a/include/sway/input/seat.h +++ b/include/sway/input/seat.h | |||
@@ -124,6 +124,9 @@ struct sway_container *seat_get_focus(struct sway_seat *seat); | |||
124 | struct sway_container *seat_get_focus_inactive(struct sway_seat *seat, | 124 | struct sway_container *seat_get_focus_inactive(struct sway_seat *seat, |
125 | struct sway_container *container); | 125 | struct sway_container *container); |
126 | 126 | ||
127 | struct sway_container *seat_get_focus_inactive_tiling(struct sway_seat *seat, | ||
128 | struct sway_container *container); | ||
129 | |||
127 | /** | 130 | /** |
128 | * Descend into the focus stack to find the focus-inactive view. Useful for | 131 | * Descend into the focus stack to find the focus-inactive view. Useful for |
129 | * container placement when they change position in the tree. | 132 | * container placement when they change position in the tree. |