mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-13 04:10:13 +00:00
reftests: Always wait for rendering to settle
We wait for a few 100ms for rendering to settle in various WMs. So far we only did that for windows that were controlled by the WM (aka toplevels). With modern compositing gnome-shell however, this now also applies to override-redirect windows, so we now wait there, too. This makes the reftests a lot slower, but they now actually work when running make check in gnome-shell.
This commit is contained in:
parent
64b7308328
commit
9ec22d6652
@ -108,6 +108,7 @@ snapshot_window_native (GdkWindow *window,
|
||||
XWindowAttributes attrs;
|
||||
|
||||
if (gdk_window_get_window_type (window) == GDK_WINDOW_TOPLEVEL ||
|
||||
gdk_window_get_window_type (window) == GDK_WINDOW_TEMP ||
|
||||
gdk_window_get_window_type (window) == GDK_WINDOW_FOREIGN)
|
||||
{
|
||||
/* give the WM/server some time to sync. They need it.
|
||||
|
Loading…
Reference in New Issue
Block a user