Around the sides. If it's a screen lid that sits on top I go around the whole perimeter. If it's one of the slide tops held with pins I just do the front.
The screen lids that sit on top aren't usually a snug fit and they'll wiggle around. This eliminates that wiggle room and closes the tiny gaps.