diff options
-rw-r--r-- | sway/tree/layout.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sway/tree/layout.c b/sway/tree/layout.c index b833e8e1..a0f9b6de 100644 --- a/sway/tree/layout.c +++ b/sway/tree/layout.c | |||
@@ -218,6 +218,8 @@ void container_move_to(struct sway_container *container, | |||
218 | seat_set_focus(seat, new_parent); | 218 | seat_set_focus(seat, new_parent); |
219 | workspace_output_raise_priority(container, old_parent, new_parent); | 219 | workspace_output_raise_priority(container, old_parent, new_parent); |
220 | ipc_event_workspace(NULL, container, "move"); | 220 | ipc_event_workspace(NULL, container, "move"); |
221 | } else if (container->type == C_VIEW) { | ||
222 | ipc_event_window(container, "move"); | ||
221 | } | 223 | } |
222 | container_notify_subtree_changed(old_parent); | 224 | container_notify_subtree_changed(old_parent); |
223 | container_notify_subtree_changed(new_parent); | 225 | container_notify_subtree_changed(new_parent); |
@@ -578,6 +580,10 @@ void container_move(struct sway_container *container, | |||
578 | container_notify_subtree_changed(old_parent); | 580 | container_notify_subtree_changed(old_parent); |
579 | container_notify_subtree_changed(container->parent); | 581 | container_notify_subtree_changed(container->parent); |
580 | 582 | ||
583 | if (container->type == C_VIEW) { | ||
584 | ipc_event_window(container, "move"); | ||
585 | } | ||
586 | |||
581 | if (old_parent) { | 587 | if (old_parent) { |
582 | seat_set_focus(config->handler_context.seat, old_parent); | 588 | seat_set_focus(config->handler_context.seat, old_parent); |
583 | seat_set_focus(config->handler_context.seat, container); | 589 | seat_set_focus(config->handler_context.seat, container); |