I have a similar problem, I'm running windows 10 and using multiple monitors with the virtual desktop feature. When switching virtual desktops windows displayed by X does not repaint but shows the content of the window of the desktop switched from.
I was encountering the same bug, the following patch solves the problem In date_range.php...