Carl, in the thread I'm replying to I posted a patch to _cairo_xlib_surface_create_similar which has not been merged but is still in Mozilla's cairo. Perhaps you could take a look at it. Rob