mirror of
https://github.com/brl/mutter.git
synced 2025-02-15 21:04:10 +00:00
![Sebastian Keller](/assets/img/avatar_default.png)
While c3d13203 ensured that the test-client has actually closed the window before testing for the focus change, it also made another timing related issue with the tests more likely to happen. Serveral tests assert that the focus is set to 'none' after the focussed window has been closed when the window below does not accept focus. This however can never be reliably tested, because closing the window triggers timeout based iteration of a queue of default focus candidate windows. This starts after the window has been closed and might finish before the clients have finished synchronizing. This issue is more likely to trigger the shorter the queue is and the more test clients there are that could delay the synchronization. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1329
38 lines
417 B
Plaintext
38 lines
417 B
Plaintext
new_client 2 x11
|
|
create 2/1
|
|
show 2/1
|
|
|
|
new_client 1 x11
|
|
create 1/1
|
|
show 1/1
|
|
|
|
create 1/2 csd
|
|
set_parent 1/2 1
|
|
accept_focus 1/2 false
|
|
show 1/2
|
|
|
|
create 1/3 csd
|
|
set_parent 1/3 2
|
|
show 1/3
|
|
|
|
wait
|
|
assert_focused 1/3
|
|
assert_stacking 2/1 1/1 1/2 1/3
|
|
|
|
destroy 1/3
|
|
wait
|
|
|
|
assert_stacking 2/1 1/1 1/2
|
|
|
|
activate 2/1
|
|
wait
|
|
|
|
assert_focused 2/1
|
|
assert_stacking 1/1 1/2 2/1
|
|
|
|
sleep 250
|
|
wait
|
|
|
|
assert_focused 2/1
|
|
assert_stacking 1/1 1/2 2/1
|