diff options
Diffstat (limited to 'x11-wm/compiz/files/04-fbconfig-depth-fix.patch')
-rw-r--r-- | x11-wm/compiz/files/04-fbconfig-depth-fix.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/x11-wm/compiz/files/04-fbconfig-depth-fix.patch b/x11-wm/compiz/files/04-fbconfig-depth-fix.patch new file mode 100644 index 000000000000..29dbdc96de34 --- /dev/null +++ b/x11-wm/compiz/files/04-fbconfig-depth-fix.patch @@ -0,0 +1,31 @@ +Make sure the depth of the corresponding match for the fbconfig we pick. + +From: Kristian Høgsberg <krh@redhat.com> + + +--- + + src/screen.c | 10 ++++++++++ + 1 files changed, 10 insertions(+), 0 deletions(-) + +diff --git a/src/screen.c b/src/screen.c +index 9ec30d5..75c6abc 100644 +--- a/src/screen.c ++++ b/src/screen.c +@@ -1309,6 +1309,16 @@ addScreen (CompDisplay *display, + + for (j = 0; j < nElements; j++) + { ++ { ++ XVisualInfo *vi; ++ int visual_depth; ++ vi = glXGetVisualFromFBConfig(dpy, fbConfigs[j]); ++ visual_depth = vi->depth; ++ XFree(vi); ++ if (visual_depth != i) ++ continue; ++ } ++ + (*s->getFBConfigAttrib) (dpy, + fbConfigs[j], + GLX_ALPHA_SIZE, |