Comment 13 for bug 192882

Revision history for this message
Tormod Volden (tormodvolden) wrote :

For these kinds of workarounds, I'd suggest a shell wrapper instead of changing the code.

The "visuals" code in xaos dates from a time when transparency was not thought of yet. It would be good if someone knowledgeable could go through it. See xalloc_display() in src/ui/ui-drv/x11/xlib.c. Is there an easy and good way to avoid transparency?

XLIB_SKIP_ARGB_VISUALS basically disables 32 bit depth visuals, so the equivalent workaround in xaos would be to not even try to match on those:

--- ../xlib.c.orig 2008-03-07 21:10:11.000000000 +0100
+++ src/ui/ui-drv/x11/xlib.c 2008-03-07 21:12:57.000000000 +0100
@@ -337,7 +337,7 @@ xalloc_display (CONST char *s, int x, in
   new->params = params;

   found = 0;
- for (i = 32; i > 13 && !found; i--)
+ for (i = 31; i > 13 && !found; i--)
     if (XMatchVisualInfo (new->display, new->screen, i, TrueColor, &vis))
       {
        found = 1;