Re: using compiz features in applications
On Wed, 2006-10-04 at 07:54 -0300, Gustavo Noronha Silva wrote:
>
> Now that compiz and AIGLX are working in unstable I'm quite interested
> in knowing how I'd go about using the visual goodnes in my own
> applications.
>
> I have this application which darkens the background by using the same
> trick GNOME used to use for the logout dialog.
>
> I figured the best place for me to ask for guidance would be the X
> Strike Force, so here I am asking: do you have any pointers to a library
> for doing this kind of thing with compiz/aiglx help, and its
> documentation?
Neither AIGLX nor compiz expose any special API to apps. To do what you
describe, you could either use the RENDER extension to blend over an
existing window or a dedicated translucent window, either via
_NET_WM_WINDOW_OPACITY or an ARGB visual and per-pixel alpha values. For
the latter two cases you should check that a compositing manager is
running via _NET_WM_CM_S<screen number>.
Hope these pointers will be useful,
--
Earthling Michel Dänzer | http://tungstengraphics.com
Libre software enthusiast | Debian, X and DRI developer
Reply to: