aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/focus.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-11-05 21:21:47 +0100
committerGitHub <noreply@github.com>2018-11-05 21:21:47 +0100
commit25bea8f6a538edf47ab7e0625f24cdf31e28473f (patch)
tree96296f5d755a728e8999b072bfd5ce8ee9c4d79e /sway/commands/focus.c
parent0e85b92250f8f6f01134a2d53f735567896f2ec8 (diff)
parentfbf1730557687964ca520e70d94ab4b0fd63a595 (diff)
Merge branch 'master' into effective-damage
Diffstat (limited to 'sway/commands/focus.c')
-rw-r--r--sway/commands/focus.c8
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;
}