Xwindow parent window transparent window

I am trying to create an overlay window over another running application. Say firefox. I implemented using Xcreatewindow

win = XCreateWindow( display, *firefoxwindow,
                   50, 300, 400, 400,
                   0,
                   visualinfo.depth,
                   InputOutput,
                   visualinfo.visual,
                   CWColormap|CWEventMask|CWBackPixmap|CWBorderPixel,
                   &attr
                   ) ;

I searched * firefoxwindow using XQueryTree ()

and then this code https://gist.github.com/903479

The result is a transparent window when I use XRoot as a parent. But, when I try to use firefoxwindow or another application window as a parent, it becomes optique.

+3
source share
1 answer

In your case, you need to create a composite pixmap window with a background window manually. When you create a window with a root as parent transparency, it is handled by the window manager layout

+1
source

All Articles