From: Chad Versace <[email protected]>

Use #ifdef to disable the function because, when using Waffle and Mesa,
XSetWMHints() causes the next emission of DRI2SwapBuffers to fail with
BadWindow(X_ChangeProperty). Comment this with FIXME.

Reviewed-by: Jordan Justen <[email protected]>
Reviewed-by: Anuj Phogat <[email protected]>
Signed-off-by: Chad Versace <[email protected]>
---
 tests/util/piglit-glx-util.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tests/util/piglit-glx-util.c b/tests/util/piglit-glx-util.c
index df54c50..ad71790 100644
--- a/tests/util/piglit-glx-util.c
+++ b/tests/util/piglit-glx-util.c
@@ -224,6 +224,11 @@ piglit_iterate_visuals_event_loop(Display *dpy,
 void
 piglit_glx_window_set_no_input(Display *dpy, GLXDrawable win)
 {
+       /* FIXME: When using Waffle and Mesa, this function causes the next
+        * FIXME: emission DRI2SwapBuffers to fail with
+        * FIXME: BadWindow(X_ChangeProperty).
+        */
+#ifndef USE_WAFFLE
        XWMHints *hints;
        hints = XAllocWMHints();
        hints->flags |= InputHint;
@@ -232,6 +237,7 @@ piglit_glx_window_set_no_input(Display *dpy, GLXDrawable 
win)
        XSetWMHints(dpy, win, hints);
 
        XFree(hints);
+#endif
 }
 
 void
-- 
1.7.10.1

_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to