Replace gdk_region_copy with cairo_region_copy