Reputation: 5369
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.
Upvotes: 2
Views: 656
Reputation: 43573
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.
Upvotes: 1
Reputation: 120239
The source of xeyes is available, study it. You want to learn how functions with the XShape... prefix are used there. Unfortunately the manual page (man XShape
) is of no help whatsoever, it just list the functions without explaining what they do or how to use them. You need to learn by example from existing applications.
Note, modern application have better-looking transparency with continuous range from 0 (opaue) to 1 (fully transparent). It is based on a different mechanism.
Upvotes: 1