Mouse moves out of full screen game

While playing full screen games, if I move my mouse too much it will jump to the other monitor which is not what you want in a game. Is this possible to fix? Also would this be a KDE thing or a wayland thing?

It’s been a while since I’ve had a second screen set up but I used to use Lutris for this (another thing I haven’t used in ages). There was a setting in it that you could use to turn off other displays once the game is launched.