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 | ipc: fix workspace::move calls argument order (diff) | |
download | sway-e0e638281e193103b44105cb1689b2ec25cae7e8.tar.gz sway-e0e638281e193103b44105cb1689b2ec25cae7e8.tar.zst sway-e0e638281e193103b44105cb1689b2ec25cae7e8.zip |
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, | |||
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); |