In Windows' and MacOS's metafiles (WMF/EMF and PICT/PDF) you can attach any information that goes along with the metafile - it can be something specific for you application. How can I achieve same result on Linux? I'm not using GDK or Qt - just "plain" XLib, Xt and Motif.
The idea is that I want to copy and send something from my application (via selection) to someone else, for example as PIXMAP. But still want to encode the information I've sent in my custom format so when I get back same object I can retrieve this information and make the object editable in my application.