Jonas Ådahl 6d12d2eac2 tests: Move window-shown verification to test-runner
Previously we relied on the test-client to make sure that a window was
shown. For X11, we did not need to do anything, but for Wayland we had
to make sure we had drawn the first frame, otherwise mutter wouldn't
have a buffer making the window not showable.

Doing it this way doesn't work anymore however, since the 'after-paint'
event will be emitted even if we didn't actually paint anything. This is
the case with current Gtk under Wayland, where we won't draw until the
compositor has configured the surface. In effect, this mean we'll get a
dummy after-paint emission before the first frame is actually painted.

Instead, move the verification that a "show" command has completed by
having the test-runner wait for a "shown" signal on the window, which is
emitted in the end of meta_window_show(). This requires an additional
call to gdk_display_sync() in the test-client after creating the window,
to make sure that the window creation vents has been received in the
compositor.
2018-07-17 16:30:18 +02:00
2015-07-06 00:52:18 -07:00
2014-03-18 20:37:35 -04:00
2017-05-11 13:45:44 +02:00
2018-07-09 18:37:32 +02:00
2016-04-27 20:37:47 +02:00
2014-07-31 17:50:28 +02:00
2018-07-09 18:37:32 +02:00
Description
91 MiB
Languages
C 98.9%
Meson 0.7%
Python 0.3%