Windows leaving ghost image when minimized

I am having this issue where if I minimize any application while it is not focused it will leave a ghost image of the application on screen. This seems to be an issue with window transparency cause if I disable and re-enable it the ghost image goes away. I also don’t run into this issue if I have window transparency disabled.