Desktop corrupted after wake up (external monitor)

After setting the computer to sleep and then wake up , the desktop is corrupted. By "corrupted" I mean, some elements of the graphical interface do not show up.

The hardware and software is the same as in this post

External monitor not going to sleep

Best seen here

After hovering a bit with the mouse some menus (not all) do show up. Please see image.
The behaviour is random, sometimes parts of the menus do not show up at all

Behaviour was reproduced with these setting below (sleep after 10 minutes), then wake up by clicking mouse or external keyboard