Image corrupted/broken when screen sharing an X window on Firefox on Wayland

On Firefox running on Wayland, when I screenshare any XWayland window, it looks all corrupted like this:

But sharing native Wayland windows works perfectly.
What could be causing this?

1 Like