ipc: fix workspace::move calls argument order

master
Ian Fan 6 years ago
parent 07101a5707
commit 4bf253855f

@ -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);
}

@ -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);

@ -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--;
}
}

Loading…
Cancel
Save