transset fails to pick correct window under GNOME
Submitted by Marius Gedminas
Assigned to Xorg Project Team
Description
I can make windows 50% translucent in gnome-shell if I run
xprop -f _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x7fffffff
and click on a window, but when I try the same with
transset 0.5
nothing appears to change (and xprop doesn't show a _NET_WM_WINDOW_OPACITY property on that window).
Running transset -v prints
Set Property to 0.75
Property set on: 0x104ce00
which is different from the window ID shown by xwininfo.
I've also compared transset and xprop under xtrace and saw that transset is using the wrong window ID.
Looks like x11-apps/transset/dsimple.c (Get_Window_Under_Cursor) may need to be updated to do the recursive search for a window with the WM_STATE property that is done in, e.g., x11-utils/xprop/dsimple.c (Select_Window).
Originally filed at https://bugs.launchpad.net/ubuntu/+source/x11-apps/+bug/1301472
Version: 7.7 (2012.06)