mirror of
https://github.com/swaywm/sway.git
synced 2025-11-02 09:01:40 -05:00
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.
This commit is contained in:
parent
936168e740
commit
da2a87f6c7
4 changed files with 32 additions and 13 deletions
|
|
@ -124,6 +124,9 @@ 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_inactive_tiling(struct sway_seat *seat,
|
||||
struct sway_container *container);
|
||||
|
||||
/**
|
||||
* Descend into the focus stack to find the focus-inactive view. Useful for
|
||||
* container placement when they change position in the tree.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue