Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 633938929c9a915d8b94645b3b251e5a > files > 12

WindowMaker-0.92.0-19mdv2009.0.src.rpm

diff -ru WindowMaker-0.92.0.orig/src/main.c WindowMaker-0.92.0/src/main.c
--- WindowMaker-0.92.0.orig/src/main.c	2004-10-24 22:32:51.000000000 -0300
+++ WindowMaker-0.92.0/src/main.c	2008-02-20 18:40:10.000000000 -0300
@@ -828,6 +828,12 @@
         exit(1);
     }
 
+    /* Ensure wVisualID is the visual id of the default display visual.
+     * This is required to avoid all sort of corruptions when using
+     * composite at a depth other than 24.
+     */
+    wVisualID = (int)DefaultVisual(dpy, DefaultScreen(dpy))->visualid;
+
     /* check if the user specified a complete display name (with screen).
      * If so, only manage the specified screen */
     if (DisplayName)
Somente em WindowMaker-0.92.0/src: main.c~