JUCE applications and XDCMP

If you run your desktop using XDCMP and your JUCE applications have XSHM and XRENDER enabled or set to default, the contents of the window will not get repainted. If i disable those options the window paints fine. There is no issue when using VNC.

This is on ARM (Exynos) hard-float, with kernel 3.8