aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/move.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands/move.c')
-rw-r--r--sway/commands/move.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/sway/commands/move.c b/sway/commands/move.c
index 69ed06c0..ff656cfb 100644
--- a/sway/commands/move.c
+++ b/sway/commands/move.c
@@ -1,4 +1,3 @@
1#define _POSIX_C_SOURCE 200809L
2#include <ctype.h> 1#include <ctype.h>
3#include <math.h> 2#include <math.h>
4#include <stdbool.h> 3#include <stdbool.h>
@@ -12,6 +11,7 @@
12#include "sway/input/seat.h" 11#include "sway/input/seat.h"
13#include "sway/ipc-server.h" 12#include "sway/ipc-server.h"
14#include "sway/output.h" 13#include "sway/output.h"
14#include "sway/server.h"
15#include "sway/tree/arrange.h" 15#include "sway/tree/arrange.h"
16#include "sway/tree/container.h" 16#include "sway/tree/container.h"
17#include "sway/tree/root.h" 17#include "sway/tree/root.h"
@@ -770,15 +770,6 @@ static struct cmd_results *cmd_move_in_direction(
770 ipc_event_window(container, "move"); 770 ipc_event_window(container, "move");
771 } 771 }
772 772
773 // Hack to re-focus container
774 seat_set_raw_focus(config->handler_context.seat, &new_ws->node);
775 seat_set_focus_container(config->handler_context.seat, container);
776
777 if (old_ws != new_ws) {
778 ipc_event_workspace(old_ws, new_ws, "focus");
779 workspace_detect_urgent(old_ws);
780 workspace_detect_urgent(new_ws);
781 }
782 container_end_mouse_operation(container); 773 container_end_mouse_operation(container);
783 774
784 return cmd_results_new(CMD_SUCCESS, NULL); 775 return cmd_results_new(CMD_SUCCESS, NULL);