From: Michel Dänzer <michel.daen...@amd.com> Otherwise this prevents any interaction with the windows in non-automatic mode, not even the Escape key or the window decoration close button works. That's quite annoying for investigating test failures.
Signed-off-by: Michel Dänzer <michel.daen...@amd.com> --- tests/util/piglit-framework-gl/piglit_x11_framework.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/tests/util/piglit-framework-gl/piglit_x11_framework.c b/tests/util/piglit-framework-gl/piglit_x11_framework.c index ef7fbcf..dafd370 100644 --- a/tests/util/piglit-framework-gl/piglit_x11_framework.c +++ b/tests/util/piglit-framework-gl/piglit_x11_framework.c @@ -170,12 +170,14 @@ show_window(struct piglit_winsys_framework *winsys_fw) get_native(x11_fw); - /* Prevent the window from grabbing input. */ - wm_hints = XAllocWMHints(); - wm_hints->flags |= InputHint; - wm_hints->input = False; - XSetWMHints(x11_fw->display, x11_fw->window, wm_hints); - XFree(wm_hints); + if (piglit_automatic) { + /* Prevent the window from grabbing input. */ + wm_hints = XAllocWMHints(); + wm_hints->flags |= InputHint; + wm_hints->input = False; + XSetWMHints(x11_fw->display, x11_fw->window, wm_hints); + XFree(wm_hints); + } waffle_window_show(wfl_fw->window); } -- 1.7.10.4 _______________________________________________ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit