How to get pid from xid (window id x)? How to get a list of xids for a given pid?
(Assume that all applications work with DISPLAY=:0 , without using network transparency)
I expect something like:
- Insert / proc / $ pid / fd / monitor connection to server X
- Follow this connection, dig up
/proc/`pidof X`/fd - Workaround inside X as it needs to know how to map connections to them in windows.
source share