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.
This commit is contained in:
Emmanuele Bassi 2010-03-10 00:25:26 +00:00
parent 6bd1846d6c
commit 382b38c0f7

View File

@ -1,3 +1,7 @@
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <gmodule.h> #include <gmodule.h>
#include <clutter/clutter.h> #include <clutter/clutter.h>
@ -10,6 +14,10 @@
#include <stdlib.h> #include <stdlib.h>
#include <glib.h> #include <glib.h>
#ifdef HAVE_CLUTTER_GLX
#include "clutter/x11/clutter-x11.h"
#endif
#define NHANDS 6 #define NHANDS 6
typedef struct SuperOH typedef struct SuperOH
@ -195,6 +203,10 @@ test_paint_wrapper_main (int argc, char *argv[])
error = NULL; error = NULL;
#ifdef HAVE_CLUTTER_GLX
clutter_x11_set_use_argb_visual (TRUE);
#endif
clutter_init_with_args (&argc, &argv, clutter_init_with_args (&argc, &argv,
NULL, NULL,
super_oh_entries, super_oh_entries,