diff options
Diffstat (limited to 'sway/tree/layout.c')
-rw-r--r-- | sway/tree/layout.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sway/tree/layout.c b/sway/tree/layout.c index 5abdbc32..1769609b 100644 --- a/sway/tree/layout.c +++ b/sway/tree/layout.c | |||
@@ -638,16 +638,16 @@ struct sway_container *container_get_in_direction( | |||
638 | wrap_candidate = parent->children->items[0]; | 638 | wrap_candidate = parent->children->items[0]; |
639 | } | 639 | } |
640 | if (config->force_focus_wrapping) { | 640 | if (config->force_focus_wrapping) { |
641 | return seat_get_focus_by_type(seat, | 641 | return wrap_candidate; |
642 | wrap_candidate, C_VIEW); | ||
643 | } | 642 | } |
644 | } | 643 | } |
645 | } else { | 644 | } else { |
645 | struct sway_container *desired_con = parent->children->items[desired]; | ||
646 | wlr_log(L_DEBUG, | 646 | wlr_log(L_DEBUG, |
647 | "cont %d-%p dir %i sibling %d: %p", idx, | 647 | "cont %d-%p dir %i sibling %d: %p", idx, |
648 | container, dir, desired, parent->children->items[desired]); | 648 | container, dir, desired, desired_con); |
649 | return seat_get_focus_by_type(seat, | 649 | struct sway_container *next = seat_get_focus_by_type(seat, desired_con, C_VIEW); |
650 | parent->children->items[desired], C_VIEW); | 650 | return next; |
651 | } | 651 | } |
652 | } | 652 | } |
653 | 653 | ||