On Feb 5, 2008 4:35 PM, Dominik Vogt <[EMAIL PROTECTED]> wrote:
>
> On Tue, Feb 05, 2008 at 03:51:09PM +0000, seventh guardian wrote:
(...)
> > I believe the first part of the work would be to make fvwm support
> > ARGB visuals. Then, having a proper composite manager module would be
> > good. As for the effects, it's all in the composite manager code..
>
> Note that I have an ARGB patch lying on my disk that is more or
> less an Xorg specific hack. I wasn't able to find out how to
> properly detect ARGB visuals. The patch looks like this:
>
> /* We assume that a truecolour visual of depth 32 is
> * actually an ARGB visual (hard to detect otherwise)
> * in this case, clone the window visual/cmap etc. */
> if (
> fw->attr_backup.visual->class == TrueColor &&
> fw->attr_backup.depth == 32)
> {
> /* ARGB visual */
> ...
> }
>
> Since it's such a blatant hack I refused to apply the patch yet.
I've asked on #xorg-devel and there is a non-hackish way of doing it.
I'll try to update the patch accordingly.
Cheers,
Renato Caldas