mutter/src/tests/stacking/workspace-basic.metatest
Sebastian Wick ed7a9af62a tests/stacking: Add workspace management commands
New commands to set the number of workspaces, activate a workspace, with
and without focus, move windows to specific workspaces, and check the
stacking on a specific workspace.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2489>
2022-09-20 17:14:53 +00:00

41 lines
727 B
Plaintext

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