mir: only paint background if window has one