How can I obtain the type of an object by its identifier ?

Adam Jackson ajax at nwnk.net
Mon Feb 9 10:21:36 PST 2009


On Mon, 2009-02-09 at 16:24 +0500, Alexei Babich wrote:
> Hello all.
> 
> How can I obtain the type of an object by its identifier (XID)? E.g.,
> window, picture, etc.

From the client side?  You don't.  You could infer it by doing a bunch
of GetWindowAttributes or similar and inspecting error codes, I suppose.

I'm curious why you need to do this though.

- ajax
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.x.org/archives/xorg/attachments/20090209/2da50d5d/attachment.pgp>


More information about the xorg mailing list