mutter/src/tests/stacking/modals.metatest
Jonas Ådahl c94d929332 tests/stacking: Add test hiding a modal with a not shown parent
This adds a test case for
https://gitlab.gnome.org/GNOME/mutter/-/issues/862 that checks that
hiding a dialog where its parent is not yet shown doesn't trigger any
asserts or crashes.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1643>
2020-12-18 17:17:50 +00:00

33 lines
472 B
Plaintext

new_client w wayland
# Create two Wayland windows, and make the second a transient of the
# first. Then make the parent not actually ever show, but show the
# transient.
# Then make sure that hiding the transient can hide without causing
# issues.
# https://gitlab.gnome.org/GNOME/mutter/-/issues/862
create w/1 csd
create w/2 csd
set_parent w/2 1
freeze w/1
show w/1 async
show w/2
wait
assert_stacking w/1 w/2
hide w/2
wait
assert_stacking w/1
hide w/2
wait