mirror of
https://github.com/swaywm/sway.git
synced 2024-12-28 07:56:31 +01:00
ipc: fix workspace::move calls argument order
This commit is contained in:
parent
07101a5707
commit
4bf253855f
3 changed files with 3 additions and 3 deletions
|
@ -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…
Reference in a new issue