diff options
Diffstat (limited to 'sway/tree/layout.c')
-rw-r--r-- | sway/tree/layout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/tree/layout.c b/sway/tree/layout.c index e81facc6..ce4457b1 100644 --- a/sway/tree/layout.c +++ b/sway/tree/layout.c | |||
@@ -872,7 +872,7 @@ struct sway_container *container_get_in_direction( | |||
872 | } | 872 | } |
873 | if (next->children && next->children->length) { | 873 | if (next->children && next->children->length) { |
874 | // TODO consider floating children as well | 874 | // TODO consider floating children as well |
875 | return seat_get_focus_by_type(seat, next, C_VIEW); | 875 | return seat_get_focus_inactive_view(seat, next); |
876 | } else { | 876 | } else { |
877 | return next; | 877 | return next; |
878 | } | 878 | } |
@@ -910,7 +910,7 @@ struct sway_container *container_get_in_direction( | |||
910 | wlr_log(L_DEBUG, | 910 | wlr_log(L_DEBUG, |
911 | "cont %d-%p dir %i sibling %d: %p", idx, | 911 | "cont %d-%p dir %i sibling %d: %p", idx, |
912 | container, dir, desired, desired_con); | 912 | container, dir, desired, desired_con); |
913 | struct sway_container *next = seat_get_focus_by_type(seat, desired_con, C_VIEW); | 913 | struct sway_container *next = seat_get_focus_inactive_view(seat, desired_con); |
914 | return next; | 914 | return next; |
915 | } | 915 | } |
916 | } | 916 | } |