mirror of
https://github.com/swaywm/sway.git
synced 2026-04-18 06:46:56 -04:00
commands/move: do not force focus on the moved container
My code archaeology isn't good enough to determine what this is here for, but it isn't correct. We should be able to move containers in a direction without focusing them. AFAICT i3 doesn't do this, so we shouldn't either. This fixes ipc commands like move <dir> with criteria that apply to containers which are not the current focus.
This commit is contained in:
parent
0b84d82b9a
commit
a0538d96af
1 changed files with 0 additions and 9 deletions
|
|
@ -769,15 +769,6 @@ static struct cmd_results *cmd_move_in_direction(
|
||||||
ipc_event_window(container, "move");
|
ipc_event_window(container, "move");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hack to re-focus container
|
|
||||||
seat_set_raw_focus(config->handler_context.seat, &new_ws->node);
|
|
||||||
seat_set_focus_container(config->handler_context.seat, container);
|
|
||||||
|
|
||||||
if (old_ws != new_ws) {
|
|
||||||
ipc_event_workspace(old_ws, new_ws, "focus");
|
|
||||||
workspace_detect_urgent(old_ws);
|
|
||||||
workspace_detect_urgent(new_ws);
|
|
||||||
}
|
|
||||||
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…
Add table
Add a link
Reference in a new issue