Window id of xterm started
Antoine Martin
antoine at nagafix.co.uk
Mon Feb 12 17:27:27 UTC 2024
On 10/02/2024 19:53, Riza Dindir wrote:
> Hello,
>
> I am starting xterm in my xinitrc. Is it possible to get the window id
> of that xterm?
No-one has mentioned this solution yet, so for completeness I'll throw
it in:
XResQueryClientIds can be used to query the real pid of window. Unlike
`_NET_WM_PID`, it can't be faked or modified.
You can get the pid of your xterm when you start it (ie: using $?), then
find the window(s) that match it.
Cheers,
Antoine
>
> Regards
More information about the xorg
mailing list