From 382b38c0f7fa79ed1679875db4c7b10e26fff039 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Wed, 10 Mar 2010 00:25:26 +0000 Subject: [PATCH] test-paint-wrapper: Request ARGB visuals on GLX If we are on GLX we have to request ARGB visuals, otherwise Clutter will not do it by itself. --- tests/interactive/test-paint-wrapper.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/interactive/test-paint-wrapper.c b/tests/interactive/test-paint-wrapper.c index 3a654e4..48a158e 100644 --- a/tests/interactive/test-paint-wrapper.c +++ b/tests/interactive/test-paint-wrapper.c @@ -1,3 +1,7 @@ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include #include @@ -10,6 +14,10 @@ #include #include +#ifdef HAVE_CLUTTER_GLX +#include "clutter/x11/clutter-x11.h" +#endif + #define NHANDS 6 typedef struct SuperOH @@ -195,6 +203,10 @@ test_paint_wrapper_main (int argc, char *argv[]) error = NULL; +#ifdef HAVE_CLUTTER_GLX + clutter_x11_set_use_argb_visual (TRUE); +#endif + clutter_init_with_args (&argc, &argv, NULL, super_oh_entries, -- 2.7.4