+Pixmap server_create_pixmap (int width, int height)
+{
+ return XCreatePixmap (server.dsp, server.root_win, width, height, server.depth);
+}
+
+
+Pixmap get_root_pixmap ()
+{
+ Pixmap ret;
+ Window root = RootWindow(server.dsp, server.screen);
+
+ ret = None;
+ int act_format, c = 2 ;
+ u_long nitems ;
+ u_long bytes_after ;
+ u_char *prop ;
+ Atom dummy_id;
+
+ do {
+ if (XGetWindowProperty(server.dsp, root, server.atom._XROOTPMAP_ID, 0, 1,
+ False, XA_PIXMAP, &dummy_id, &act_format,
+ &nitems, &bytes_after, &prop) == Success) {
+ if (prop) {
+ ret = *((Pixmap *)prop);
+ XFree(prop);
+ break;
+ }
+ }
+ } while (--c > 0);
+
+ return ret;
+}
+
+
+/*