mirror of
https://github.com/swaywm/sway.git
synced 2025-11-05 13:29:51 -05:00
fix focus child
This commit is contained in:
parent
cfd806577b
commit
deda37469a
2 changed files with 7 additions and 7 deletions
|
|
@ -638,16 +638,16 @@ struct sway_container *container_get_in_direction(
|
|||
wrap_candidate = parent->children->items[0];
|
||||
}
|
||||
if (config->force_focus_wrapping) {
|
||||
return seat_get_focus_by_type(seat,
|
||||
wrap_candidate, C_VIEW);
|
||||
return wrap_candidate;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
struct sway_container *desired_con = parent->children->items[desired];
|
||||
wlr_log(L_DEBUG,
|
||||
"cont %d-%p dir %i sibling %d: %p", idx,
|
||||
container, dir, desired, parent->children->items[desired]);
|
||||
return seat_get_focus_by_type(seat,
|
||||
parent->children->items[desired], C_VIEW);
|
||||
container, dir, desired, desired_con);
|
||||
struct sway_container *next = seat_get_focus_by_type(seat, desired_con, C_VIEW);
|
||||
return next;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue