num_workspaces 2
activate_workspace 1

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

activate_workspace 0
wait
assert_stacking 1/1 1/2
assert_stacking_workspace 1 1/1 1/2
assert_stacking_workspace 0

activate_workspace_with_focus 0 1/1
wait
assert_stacking 1/2 1/1
assert_stacking_workspace 1 1/2 1/1
assert_stacking_workspace 0

window_to_workspace 1/2 0
wait
assert_stacking 1/2 1/1
assert_stacking_workspace 1 1/1
assert_stacking_workspace 0 1/2

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

assert_stacking 1/1 1/2 2/1
assert_stacking_workspace 1 1/1
assert_stacking_workspace 0 1/2 2/1