I would guess both the game and discord are xwayland and since it all happens on that side that happens.
Seems like a similar thing to the xeyes trick to check if an app is really running on native Wayland: if the eyes don’t move, mouse events aren’t going to an xwayland client.