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.
source
share