Am I reading correctly that XWayland doesn't have the same problems? (The initial comment mentioning it seemed to say that XWayland was just as bad, but later comments seem to contradict that)
https://github.com/libsdl-org/SDL/pull/9345#issuecomment-201...
XWayland has special hooks into the compositors that normal wayland clients don't get.