diff options
-rw-r--r-- | sway/commands/move.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/move.c b/sway/commands/move.c index d4fb9022..b593138a 100644 --- a/sway/commands/move.c +++ b/sway/commands/move.c | |||
@@ -552,7 +552,7 @@ static struct cmd_results *cmd_move_container(int argc, char **argv) { | |||
552 | return cmd_results_new(CMD_FAILURE, | 552 | return cmd_results_new(CMD_FAILURE, |
553 | "Expected output to have a workspace"); | 553 | "Expected output to have a workspace"); |
554 | } | 554 | } |
555 | if (new_output_last_ws != new_workspace) { | 555 | if (new_output_last_ws && new_output_last_ws != new_workspace) { |
556 | struct sway_node *new_output_last_focus = | 556 | struct sway_node *new_output_last_focus = |
557 | seat_get_focus_inactive(seat, &new_output_last_ws->node); | 557 | seat_get_focus_inactive(seat, &new_output_last_ws->node); |
558 | seat_set_raw_focus(seat, new_output_last_focus); | 558 | seat_set_raw_focus(seat, new_output_last_focus); |