compositor: reset the surface state when hidden