aboutsummaryrefslogtreecommitdiffstats
path: root/sway
diff options
context:
space:
mode:
authorLibravatar Ronan Pigott <ronan@rjp.ie>2024-02-28 17:51:03 -0700
committerLibravatar Simon Ser <contact@emersion.fr>2024-03-01 10:13:41 +0100
commit5e18ed3cf03eee9e83909fede46dd98dff652647 (patch)
tree4c39f4c0883e5c8a064b1b05cbb2d9b520047153 /sway
parentinput: Rename WLR_INPUT_DEVICE_TABLET_TOOL to WLR_INPUT_DEVICE_TABLET (diff)
downloadsway-5e18ed3cf03eee9e83909fede46dd98dff652647.tar.gz
sway-5e18ed3cf03eee9e83909fede46dd98dff652647.tar.zst
sway-5e18ed3cf03eee9e83909fede46dd98dff652647.zip
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.
Diffstat (limited to 'sway')
-rw-r--r--sway/commands/move.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/sway/commands/move.c b/sway/commands/move.c
index bcbdaa2d..8addf26e 100644
--- a/sway/commands/move.c
+++ b/sway/commands/move.c
@@ -769,15 +769,6 @@ static struct cmd_results *cmd_move_in_direction(
769 ipc_event_window(container, "move"); 769 ipc_event_window(container, "move");
770 } 770 }
771 771
772 // Hack to re-focus container
773 seat_set_raw_focus(config->handler_context.seat, &new_ws->node);
774 seat_set_focus_container(config->handler_context.seat, container);
775
776 if (old_ws != new_ws) {
777 ipc_event_workspace(old_ws, new_ws, "focus");
778 workspace_detect_urgent(old_ws);
779 workspace_detect_urgent(new_ws);
780 }
781 container_end_mouse_operation(container); 772 container_end_mouse_operation(container);
782 773
783 return cmd_results_new(CMD_SUCCESS, NULL); 774 return cmd_results_new(CMD_SUCCESS, NULL);