1
0
Fork 0

tests/stacking: Do struts toggling during monitor-changed event

To simulate better what happens in a real shell environment

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3701>
This commit is contained in:
Marco Trevisan (Treviño) 2023-05-22 18:22:18 +02:00 committed by Marge Bot
parent 4eed39ed12
commit 6ab36f7297

View file

@ -31,3 +31,12 @@ add_strut 0 0 MONITOR_WIDTH/2 MONITOR_HEIGHT left
wait_reconfigure w/1 wait_reconfigure w/1
assert_position w/1 MONITOR_WIDTH/2 MONITOR_HEIGHT*0.2 assert_position w/1 MONITOR_WIDTH/2 MONITOR_HEIGHT*0.2
assert_size w/1 MONITOR_WIDTH/2 MONITOR_HEIGHT*0.8 assert_size w/1 MONITOR_WIDTH/2 MONITOR_HEIGHT*0.8
::monitors-changed => clear_struts left
::monitors-changed => add_strut 0 0 MONITOR_WIDTH/2 MONITOR_HEIGHT left
::monitors-changed => dispatch
reload_monitors
wait_reconfigure w/1
assert_position w/1 MONITOR_WIDTH/2 MONITOR_HEIGHT*0.2
assert_size w/1 MONITOR_WIDTH/2 MONITOR_HEIGHT*0.8