From 6bd1846d6c39d27863a6fc89356324c0cb3a57ce Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Dapena=20Paz?= Date: Mon, 8 Mar 2010 15:37:36 +0100 Subject: [PATCH] Fix argb initialisation. Fix clutter initialisation if argb visuals are enabled, setting a border color on creating the dummy window. This should avoid BadMatch happening when the depth of the root window visual is not the same of the depth of the argb visual. http://bugzilla.openedhand.com/show_bug.cgi?id=2011 Signed-off-by: Emmanuele Bassi --- clutter/glx/clutter-backend-glx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clutter/glx/clutter-backend-glx.c b/clutter/glx/clutter-backend-glx.c index d77eda2..8b171af 100644 --- a/clutter/glx/clutter-backend-glx.c +++ b/clutter/glx/clutter-backend-glx.c @@ -555,6 +555,7 @@ clutter_backend_glx_create_context (ClutterBackend *backend, root_xwin, xvisinfo->visual, AllocNone); + attrs.border_pixel = 0; backend_glx->dummy_xwin = XCreateWindow (xdisplay, root_xwin, -100, -100, 1, 1, @@ -562,7 +563,7 @@ clutter_backend_glx_create_context (ClutterBackend *backend, xvisinfo->depth, CopyFromParent, xvisinfo->visual, - CWOverrideRedirect | CWColormap, + CWOverrideRedirect | CWColormap | CWBorderPixel, &attrs); /* Try and create a GLXWindow to use with extensions dependent on -- 2.7.4