diff options
author | Ian Fan <ianfan0@gmail.com> | 2018-07-18 10:50:48 +0100 |
---|---|---|
committer | Ian Fan <ianfan0@gmail.com> | 2018-08-01 16:57:15 +0100 |
commit | e0e638281e193103b44105cb1689b2ec25cae7e8 (patch) | |
tree | 034899d17fbf64998ab89d1ec81c48f09be97688 /sway | |
parent | 4bf253855f1946ffca5a41085b8ae3eb79ca62c4 (diff) |
ipc: add window::move events
Diffstat (limited to 'sway')
-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, seat_set_focus(seat, new_parent); workspace_output_raise_priority(container, old_parent, new_parent); ipc_event_workspace(NULL, container, "move"); + } else if (container->type == C_VIEW) { + ipc_event_window(container, "move"); } container_notify_subtree_changed(old_parent); container_notify_subtree_changed(new_parent); @@ -578,6 +580,10 @@ void container_move(struct sway_container *container, container_notify_subtree_changed(old_parent); container_notify_subtree_changed(container->parent); + if (container->type == C_VIEW) { + ipc_event_window(container, "move"); + } + if (old_parent) { seat_set_focus(config->handler_context.seat, old_parent); seat_set_focus(config->handler_context.seat, container); |