Problem
If you run a virtual machine (VM) and change the internal display resolution of the VM, the mouse cursor position might no longer reflect where you actually see the cursor, and instead get some horizontal and vertical offset (meaning your clicks will be passed to a completely different point of the screen).
Related Issues
Bugzilla report: #2006746
Workarounds
This only seems to happen after the resolution change is performed during a live session, so if you reboot the machine, the issue should disappear (until you decide to change the VM resolution again).
Another workaround is to remove the spice-vdagent package, however that will also mean you’ll lose some features, like seamless mouse integration into the VM, or clipboard sharing.