[gtk+] reftests: Always wait for rendering to settle
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] reftests: Always wait for rendering to settle
- Date: Wed, 2 Aug 2017 10:36:14 +0000 (UTC)
commit 9ec22d66524807f910e41f3a41a75cfa28655b7b
Author: Benjamin Otte <otte redhat com>
Date: Wed Aug 2 11:32:50 2017 +0100
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.
testsuite/reftests/reftest-snapshot.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/testsuite/reftests/reftest-snapshot.c b/testsuite/reftests/reftest-snapshot.c
index c6eb14a..1e4e1fd 100644
--- a/testsuite/reftests/reftest-snapshot.c
+++ b/testsuite/reftests/reftest-snapshot.c
@@ -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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]