Window resize trail on desktop

I have a CAD application that leaves window resize rectangles all over the desktop. Is there a way to prevent this or at least a method to refresh the desktop to get rid of them.

I tried a screen resolution change does the trick but loocking for a more permanent and automated solution