num_workspaces 2
activate_workspace 0

new_client 1 wayland
create 1/1
show 1/1
create 1/2
show 1/2
wait
assert_stacking_workspace 0 1/1 1/2
assert_stacking_workspace 1

activate_workspace 1
new_client 2 wayland
create 2/1
show 2/1
wait
assert_stacking_workspace 0 1/1 1/2
assert_stacking_workspace 1 2/1

create 1/3
show 1/3
wait
assert_stacking_workspace 0 1/1 1/2
assert_stacking_workspace 1 2/1 1/3

activate_workspace_with_focus 0 1/1
wait
assert_stacking_workspace 0 1/2 1/1
assert_stacking_workspace 1 2/1 1/3