mirror of
https://github.com/swaywm/sway.git
synced 2025-01-30 20:56:43 +00:00
Properly focus container when it changes parent
When a parented container changes parent, sway will render a sibling
non-focused container.
Revert deletion of code which introduced this regression.
Fixes: 5e18ed3cf0
Fixes: https://github.com/swaywm/sway/issues/8292
This commit is contained in:
parent
801bc76ce3
commit
f0731de2d3
|
@ -770,6 +770,10 @@ static struct cmd_results *cmd_move_in_direction(
|
||||||
ipc_event_window(container, "move");
|
ipc_event_window(container, "move");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Re-focus re-parented container.
|
||||||
|
seat_set_raw_focus(config->handler_context.seat, &new_ws->node);
|
||||||
|
seat_set_focus_container(config->handler_context.seat, container);
|
||||||
|
|
||||||
container_end_mouse_operation(container);
|
container_end_mouse_operation(container);
|
||||||
|
|
||||||
return cmd_results_new(CMD_SUCCESS, NULL);
|
return cmd_results_new(CMD_SUCCESS, NULL);
|
||||||
|
|
Loading…
Reference in a new issue