Re: how to get handle of active window

[email protected] (Josip Deanovic)
Newsgroups gmane.comp.xfree86.devel
Organization Nimium d.o.o.
Message-ID <[email protected]>
Karthik Ramamoorthy <[email protected]> writes:

> Hi All,
>
> Can anybody tell me how to get handle of the currently active window in 
> Desktop let it be kde or Gnome. Is there any Xlib function to get the 
> handle. One xwininfo command is there, but for it mouse click is required to 
> get the window property. So is there any other command or API through which 
> we can get the various property of the active window in the desktop.

You can use XQueryTree to get all the windows and then chose only
those you are interested in.

> Also through process table or descriptor can we identify what all windows 
> are there?

No.

-- 
Josip Deanovic
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.