tests/stage-view-tests: Make 'wait_for_paint()' block

Otherwise it's a busy loop, skipping any poll():ing.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1719>
This commit is contained in:
Jonas Ådahl 2021-02-08 18:39:11 +01:00 committed by Robert Mader
parent 4145fbbae4
commit b838ba8166

View File

@ -128,7 +128,7 @@ wait_for_paint (ClutterActor *stage)
&was_painted);
while (!was_painted)
g_main_context_iteration (NULL, FALSE);
g_main_context_iteration (NULL, TRUE);
g_signal_handler_disconnect (stage, was_painted_id);
}