mirror of
https://github.com/swaywm/sway.git
synced 2025-11-04 13:29:52 -05:00
seat get focus inactive view
This commit is contained in:
parent
4b200869b2
commit
c0f9ee7bd1
3 changed files with 33 additions and 24 deletions
|
|
@ -872,7 +872,7 @@ struct sway_container *container_get_in_direction(
|
|||
}
|
||||
if (next->children && next->children->length) {
|
||||
// TODO consider floating children as well
|
||||
return seat_get_focus_by_type(seat, next, C_VIEW);
|
||||
return seat_get_focus_inactive_view(seat, next);
|
||||
} else {
|
||||
return next;
|
||||
}
|
||||
|
|
@ -910,7 +910,7 @@ struct sway_container *container_get_in_direction(
|
|||
wlr_log(L_DEBUG,
|
||||
"cont %d-%p dir %i sibling %d: %p", idx,
|
||||
container, dir, desired, desired_con);
|
||||
struct sway_container *next = seat_get_focus_by_type(seat, desired_con, C_VIEW);
|
||||
struct sway_container *next = seat_get_focus_inactive_view(seat, desired_con);
|
||||
return next;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue