mirror of
https://github.com/swaywm/sway.git
synced 2024-12-30 17:06:40 +01:00
Fix focus_wrapping yes
It appears that the focus code that handles `focus_wrapping yes` was removed during the conversion to type safety. This re-implements the focus code for when `focus_wrapping` is set to `yes` (default). Neither the `no` or `force` options appear to be effected and should be working.
This commit is contained in:
parent
77d581f144
commit
c8c1ecaf25
1 changed files with 8 additions and 0 deletions
|
@ -156,6 +156,14 @@ static struct sway_node *node_get_in_direction(struct sway_container *container,
|
|||
if (new_output) {
|
||||
return get_node_in_output_direction(new_output, dir);
|
||||
}
|
||||
|
||||
// If there is a wrap candidate, return its focus inactive view
|
||||
if (wrap_candidate) {
|
||||
struct sway_container *wrap_inactive = seat_get_focus_inactive_view(
|
||||
seat, &wrap_candidate->node);
|
||||
return &wrap_inactive->node;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue