Bug#390503: small patch in gtk-window-decorator fixed it on my machine
I have fixed gtk-window-decorator.c to work with RGB24 instead of ARGB32, this
seems to allow gtk-window-decorator to work (with compiz) on my machine. I
hope it will be usable for everybody....
Here is the diff
121,123d120
< /* Added by yoram Bar-Haim, to use with nvidia-9625beta */
< #define COLOR_DEPTH 24
<
2443,2444c2440
< /* Modified by Yoram Bar-Haim */
< visual = gdk_visual_get_best_with_depth (COLOR_DEPTH);
---
> visual = gdk_visual_get_best_with_depth (32);
2448,2449c2444
< /* Modified by Yoram Bar-Haim */
< pixmap = gdk_pixmap_new (NULL, w, h, COLOR_DEPTH);
---
> pixmap = gdk_pixmap_new (NULL, w, h, 32);
5275,5277c5270
< /* Modified by Yoram Bar-Haim */
< /* all pixmaps are RGB24 */
< format = XRenderFindStandardFormat (xdisplay, PictStandardRGB24);
---
> format = XRenderFindStandardFormat (xdisplay, PictStandardARGB32);
Here is my machine status
# ls -l /usr/lib/libGL*
-rw-r--r-- 1 root root 8928000 2006-09-23 21:44 /usr/lib/libGLcore.so.1.0.9625
-rw-r--r-- 1 root root 653 2006-09-30 18:53 /usr/lib/libGL.la
lrwxrwxrwx 1 root root 10 2006-10-02 23:07 /usr/lib/libGL.so ->
libGL.so.1
lrwxrwxrwx 1 root root 17 2006-10-10 00:07 /usr/lib/libGL.so.1 ->
libGL.so.1.0.9625
-rw-r--r-- 1 root root 567308 2006-09-23 21:44 /usr/lib/libGL.so.1.0.9625
-rw-r--r-- 1 root root 687120 2006-09-26 05:09 /usr/lib/libGLU.a
lrwxrwxrwx 1 root root 11 2006-10-02 14:00 /usr/lib/libGLU.so ->
libGLU.so.1
lrwxrwxrwx 1 root root 20 2006-10-02 14:00 /usr/lib/libGLU.so.1 ->
libGLU.so.1.3.060501
-rw-r--r-- 1 root root 503452 2006-09-26 05:09 /usr/lib/libGLU.so.1.3.060501
# glxinfo | headname of display: :0.0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: NVIDIA Corporation
server glx version string: 1.4
server glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_SGIX_fbconfig,
GLX_SGIX_pbuffer, GLX_SGI_video_sync, GLX_SGI_swap_control,
GLX_EXT_texture_from_pixmap, GLX_ARB_multisample, GLX_NV_float_buffer
client glx vendor string: NVIDIA Corporation
Reply to: