cogl: include <cogl/cogl-xlib.h> for xlib specific symbols

Since Xlib.h is such a terrible citizen when it comes to symbol
namespacing it's not desirable to include Xlib.h if it is not absolutely
required. Cogl now has a standalone cogl-xlib.h that should be included
whenever any xlib specific symbols are required.

This patch updates clutter to include <cogl/cogl-xlib.h> wherever
clutter needs to use xlib specific cogl apis.

Acked-by: Emmanuele Bassi <ebassi@linux.intel.com>
This commit is contained in:
Robert Bragg 2011-11-01 15:47:43 +00:00
parent 0bfda78615
commit 6e28121ff3
2 changed files with 3 additions and 0 deletions

View File

@ -55,6 +55,8 @@
#include "clutter-cex100.h"
#endif
#include <cogl/cogl-xlib.h>
static ClutterBackendCogl *backend_singleton = NULL;
static gchar *clutter_vblank = NULL;

View File

@ -59,6 +59,7 @@
#endif
#include <cogl/cogl.h>
#include <cogl/cogl-xlib.h>
#include "clutter-backend.h"
#include "clutter-debug.h"