Artifacts when returning from suspend

Sometimes, when i return from a “Suspended” state, I can see some artifacts in random areas of some application windows.

enter image description here

They are quite annoying and sometimes they make the application totally unusable, to the point I have to close it and opening again. In some cases like the “switch user” screen, make it simply unusuable.

What are those things? Why do they appear? How can I avoid them?