From: José Dapena Paz Date: Mon, 8 Mar 2010 14:37:36 +0000 (+0100) Subject: Fix argb initialisation. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6bd1846d6c39d27863a6fc89356324c0cb3a57ce;p=profile%2Fivi%2Fclutter.git 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 --- 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