Mouse input priority issue

Game retains input priority when using a software KVM. Move mouse to non host PC and game still responds to input. Should not happen. I play another RPG (POE) and this will not happen with that game, only Last Epoch.
Using ShareMouse.
videos https://imgur.com/a/5mmURww