Implement the window::move event

The window::move event should be emitted when the window moves position
in the tree.
This commit is contained in:
Tony Crisci
2014-06-19 04:58:03 -04:00
committed by Michael Stapelberg
parent 25ca78bbba
commit cf6cc134b8
4 changed files with 67 additions and 0 deletions

View File

@ -206,6 +206,7 @@ void tree_move(int direction) {
TAILQ_INSERT_HEAD(&(swap->parent->focus_head), con, focused);
DLOG("Swapped.\n");
ipc_send_window_event("move", con);
return;
}
@ -213,6 +214,7 @@ void tree_move(int direction) {
/* If we couldn't find a place to move it on this workspace,
* try to move it to a workspace on a different output */
move_to_output_directed(con, direction);
ipc_send_window_event("move", con);
return;
}
@ -264,4 +266,5 @@ end:
FREE(con->deco_render_params);
tree_flatten(croot);
ipc_send_window_event("move", con);
}