I forgot to mention that the bug is circumvented if vertical synchronisation is disabled in the XFCE compositor.