[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-xorg
Subject:    Re: Window id of xterm started
From:       Antoine Martin <antoine () nagafix ! co ! uk>
Date:       2024-02-12 17:27:27
Message-ID: 727c1405-e7c3-4960-a625-1420c5fa4c42 () nagafix ! co ! uk
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic