To the function
cairo_surface_t * cairo_xlib_surface_create
(Display *dpy, Drawable drawable, Visual *visual,
int width, int height);
I need to provide you a Drawtable
. I have no interest in the Drawtable
being displayed, so I understand that I need the Drawtable
to be a Pixmap
instead of a Window
The problem is that to create a Pixmap
I also need a Drawtable
, so it seems that the only way to get a Drawtable
is to create a window:
Pixmap XCreatePixmap(display, drawable, width, height, depth)
Is there a way to call the first function ( cairo_xlib_surface_create
) without having created a window?