A new graphics context function called GCblend or
something which would allow the standard X11 graphics primitives to
apply alpha-blending.
One could utilize the spare fourth octet of a pixel value to specify
the alpha channel. Example:
;; assume ARGB pixel format
(with-gcontext (gc :foreground #x88FF0000
:function :blend)
(draw-rectangle window gc 100 100 100 100 t))
or in C:
XSetForeground (dpy, gc, 0x88FF0000);
XSetFunction (dpy, gc, GCBlend);
XFillRectangle (dpy, win, gc, 100, 100, 100, 100);