tests/stacking: Check that unmaximize to new size works

A client that set a new fallback size while being maximized should not
restore to the one prior to being maximized.

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1171
This commit is contained in:
Jonas Ådahl 2020-04-02 18:22:34 +02:00 committed by Georges Basile Stavracas Neto
parent 4571de5772
commit d14c8cf9a4
2 changed files with 23 additions and 0 deletions

View File

@ -142,6 +142,7 @@ stacking_tests = [
'set-override-redirect-parent',
'set-parent-exported',
'restore-size',
'unmaximize-new-size',
]
foreach stacking_test: stacking_tests

View File

@ -0,0 +1,22 @@
# This is only tested on Wayland since it's broken on X11
new_client w wayland
create w/1 csd
resize w/1 500 400
show w/1
wait
assert_size w/1 500 400
maximize w/1
wait_reconfigure
assert_size w/1 MONITOR_WIDTH MONITOR_HEIGHT
resize w/1 300 500
wait_reconfigure
assert_size w/1 MONITOR_WIDTH MONITOR_HEIGHT
unmaximize w/1
wait_reconfigure
assert_size w/1 300 500