Turn off content shadow only when there is a transparent window. Fixes issue 2925.