Take slice instead of array in set_workspace_coordinates

As far as I can tell this is equivalent, and there's no particular
reason to use an array. Arrays of options for variable-length arrays are
awkward.
This commit is contained in:
Ian Douglas Scott 2025-03-14 10:30:21 -07:00 committed by Ian Douglas Scott
parent 7340e2beff
commit 8d6bd47bc4
2 changed files with 3 additions and 11 deletions

View file

@ -4023,7 +4023,7 @@ fn workspace_set_idx(
handle: &WorkspaceHandle,
) {
state.set_workspace_name(handle, format!("{}", idx));
state.set_workspace_coordinates(handle, [Some(idx as u32), Some(output_pos as u32), None]);
state.set_workspace_coordinates(handle, &[idx as u32, output_pos as u32]);
}
pub fn check_grab_preconditions(