BurntSushi / xpybutil

An incomplete xcb-util port plus some extras
Do What The F*ck You Want To Public License
62 stars 15 forks source link

Crash in inactive-window-transperant example #2

Closed ghost closed 5 years ago

ghost commented 11 years ago

/examples/inactive-window-transperant.py attepmts to fire util.get_parent_window(client) on line 21 (which crashes in xnest), I believe this should be window.get_parent_window(client) running it in xnest no longer crashes but shows no change in transparency (probably missing composite, I'm new to WM hacking)..

Also the API URL in /README should be http://burntsushi.net/X11/docs/ not http://burntsushi.net/X11/xpybutil/docs/ .

BurntSushi commented 11 years ago

My apologies for not responding to anything else, but:

running it in xnest no longer crashes but shows no change in transparency (probably missing composite, I'm new to WM hacking)

You're right. The example in question simply sets the _NET_WM_WINDOW_OPACITY property on the parent window of the client, which is an unofficial standard that most composite managers abide by. This should work in a compositing WM, or in a WM with xcompmgr running. (There are other WM-independent composite managers, but xcompmgr is the most popular.)