compositor: refactor more into weston_surface_attach