If I take a screenshot with Shift ⇧ + Command ⌘ + 4 + Space, then I get one of the two images:

Either way the saved image is surrounded by the shadow halo. I could then edit it out by hand (using Preview) to discard the shadow, or I could use Shift ⇧ + Command ⌘ + 4 and try to pinpoint the boundary by hand, but neither lets me get a pixel-perfect boundary easily.
Is there a convenient way to save a window without its shadow?
