ipc: fix workspace::move calls argument order

This commit is contained in:
Ian Fan 2018-07-18 10:47:44 +01:00
parent 07101a5707
commit 4bf253855f
3 changed files with 3 additions and 3 deletions

View file

@ -283,7 +283,7 @@ static struct sway_container *container_output_destroy(
container_remove_child(workspace);
if (!workspace_is_empty(workspace)) {
container_add_child(new_output, workspace);
ipc_event_workspace(workspace, NULL, "move");
ipc_event_workspace(NULL, workspace, "move");
} else {
container_destroy(workspace);
}

View file

@ -217,7 +217,7 @@ void container_move_to(struct sway_container *container,
container_sort_workspaces(new_parent);
seat_set_focus(seat, new_parent);
workspace_output_raise_priority(container, old_parent, new_parent);
ipc_event_workspace(container, NULL, "move");
ipc_event_workspace(NULL, container, "move");
}
container_notify_subtree_changed(old_parent);
container_notify_subtree_changed(new_parent);

View file

@ -22,7 +22,7 @@ static void restore_workspaces(struct sway_container *output) {
if (highest == output) {
container_remove_child(ws);
container_add_child(output, ws);
ipc_event_workspace(ws, NULL, "move");
ipc_event_workspace(NULL, ws, "move");
j--;
}
}