mirror of
https://github.com/swaywm/sway.git
synced 2025-11-07 13:29:56 -05:00
Rename seat_get_active_child to seat_get_active_tiling_child
Also renames container to con in one function to prevent ugly line wrapping.
This commit is contained in:
parent
48bc15e758
commit
f6e218a643
8 changed files with 16 additions and 15 deletions
|
|
@ -261,7 +261,7 @@ struct cmd_results *cmd_focus(int argc, char **argv) {
|
|||
}
|
||||
|
||||
if (direction == MOVE_CHILD) {
|
||||
struct sway_node *focus = seat_get_active_child(seat, node);
|
||||
struct sway_node *focus = seat_get_active_tiling_child(seat, node);
|
||||
if (focus) {
|
||||
seat_set_focus(seat, focus);
|
||||
cursor_send_pointer_motion(seat->cursor, 0, true);
|
||||
|
|
|
|||
|
|
@ -149,7 +149,7 @@ static void container_move_to_container_from_direction(
|
|||
}
|
||||
|
||||
wlr_log(WLR_DEBUG, "Reparenting container (perpendicular)");
|
||||
struct sway_node *focus_inactive = seat_get_active_child(
|
||||
struct sway_node *focus_inactive = seat_get_active_tiling_child(
|
||||
config->handler_context.seat, &destination->node);
|
||||
if (!focus_inactive || focus_inactive == &destination->node) {
|
||||
// The container has no children
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue