Tuomo Valkonen wrote:
>The XRender extension supports alpha for drawing, so why
>did they not add support for translucent windows too?

It seems to work in my version of X.  ION doesn't cooperate too well
with it for some reason.  I think it's because it unmap's windows when
they're not on top of the stack.  This causes the translucent window
to draw on top of a black window sometimes - rather than the window's
that are beneath it in the stack.

An example bit of source code is available at:

  http://www.eax.com/render/HelloX-full.c

I managed to get it to compile with the following:

  gcc `freetype-config --cflags --libs` -L/usr/X11R6/lib -lX11 -lXft HelloX-full.c

If it doesn't work for you, I've done a little screenshot:

  http://www.samason.me.uk/~sam/screenshots/HelloX-full.png

I'm running Xfree86 version 4.3.0, and transparent repaints aren't the
quickest things on the planet (it takes a second or two to draw the
window).  However, I've got a Nvidia card and I don't agree with
binary only drivers, so I'm effectively running unaccelerated.  I
guess other hardware may run considerably faster than what I'm seeing
at the moment.

Have fun,
  Sam

Reply via email to