diff options
author | emersion <contact@emersion.fr> | 2018-11-05 18:59:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-05 18:59:44 +0100 |
commit | e9c77970fa23a7eda88fc0dde684961e3caca5e9 (patch) | |
tree | db770f567e0f6ca7627c2afbbcc8549ced846419 | |
parent | 77d581f1441357d254acc70ad826a8fa67dd4dd0 (diff) | |
parent | c8c1ecaf258188266161832991fc52999eddbfc7 (diff) | |
download | sway-e9c77970fa23a7eda88fc0dde684961e3caca5e9.tar.xz |
Merge pull request #3071 from RedSoxFan/fix-3064
Fix focus_wrapping yes
-rw-r--r-- | sway/commands/focus.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sway/commands/focus.c b/sway/commands/focus.c index cef92144..f6338c55 100644 --- a/sway/commands/focus.c +++ b/sway/commands/focus.c @@ -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; } |