This was reported for Blender/Wayland, they might be able to use a fix like this: https://projects.blender.org/blender/blender/commit/eaf63a35...