#include #include #include #include #include void pasteget(Display* dis, Window win, Atom property, uint32_t* nn, unsigned char** pstr) { int res; int ii; long nnl; long nc; Atom atom1; res = XGetWindowProperty(dis, win, property, 0L, 64L, 0L, 0UL, &atom1, &ii, &nnl, &nc, pstr); *nn = (uint32_t)nnl; }