I looked up more, and this is probably a duplicate of bug 99349 (https://bugs.freedesktop.org/show_bug.cgi?id=99349) . At the end, there was a suggestion for a patch to fix this. It has not yet been released in an update, so I am applying the patch myself and checking if it works.