How to distinguish Window and Pixmap ID

Ren, Zhaohan zhaohan.ren at intel.com
Sun Mar 15 19:57:54 PDT 2009


Hi all
Windows and pixmaps together are known as drawables. Now I get a "drawable" ID(Created by XCreateWindow or XCreatePixmap) , I want to know how to distinguish them, that is to say how to distinguish if a "drawable ID" is a pixmap ID or window ID.
It seems that I didn't find any Xlib interface to achieve this. Are there any good method to use?
Thank you

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.x.org/archives/xorg-devel/attachments/20090316/07db7f7d/attachment.html 


More information about the xorg-devel mailing list