Pressing cmd-shift-4 then pressing space then clicking on a floating window takes a screenshot of that floating window with the dropshadow included.
For some reason, mine now have white backgrounds…
How can I make it use a transparent background instead?