Search code examples
cclicktransparencyx11xlib

How to send click signals through a transparent window as xeyes with Xlib?


xeyes [code] is a famous application on X Window System. It is developed by X Toolkit Intrinsics (aka Xt). I'm programming in C purely with Xlib, but I cannot reproduce the same effect as follows:

P.S. I think it is absolutely possible to write in Xlib because Xt is based on Xlib.

How to send click signals under another window as xeyes with Xlib?

Make some changes in XCreateWindow()? Any help is appreciated.


Solution

  • Using non-rectangular windows is an extension. It's not part of the core protocol.

    The XShape... functions are provided in libXext. So to answer your question is that it is not possible to do this with only Xlib.

    There is some documentation for this library.