aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree
diff options
context:
space:
mode:
authorLibravatar Tony Crisci <tony@dubstepdish.com>2018-04-04 22:31:10 -0400
committerLibravatar Tony Crisci <tony@dubstepdish.com>2018-04-04 22:31:10 -0400
commitdeda37469ad4e21ad86b7c83c7c8a966301b9d5e (patch)
tree5645892f7ac17e6d93063edb4e4051c3fe57453f /sway/tree
parentfix sending window new event (diff)
downloadsway-deda37469ad4e21ad86b7c83c7c8a966301b9d5e.tar.gz
sway-deda37469ad4e21ad86b7c83c7c8a966301b9d5e.tar.zst
sway-deda37469ad4e21ad86b7c83c7c8a966301b9d5e.zip
fix focus child
Diffstat (limited to 'sway/tree')
-rw-r--r--sway/tree/layout.c10
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