https://bugs.freedesktop.org/show_bug.cgi?id=93928
--- Comment #6 from Christian König deathsimple@vodafone.de --- Created attachment 121411 --> https://bugs.freedesktop.org/attachment.cgi?id=121411&action=edit Possible fix
Please try the attached patch if you have time.
Completely untested (not even compiled), but should do most of the trick.
Need to check in detail when I'm back home.