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:
parent
4eed39ed12
commit
6ab36f7297
1 changed files with 9 additions and 0 deletions
|
@ -31,3 +31,12 @@ add_strut 0 0 MONITOR_WIDTH/2 MONITOR_HEIGHT left
|
|||
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
|
||||
|
||||
::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
|
||||
|
|
Loading…
Reference in a new issue