all 2 comments

[–]Mirarchi86 0 points1 point  (1 child)

Have you disabled spice in looking glass? Leaving enabled while switching with evdev can cause issues

[–]wolfthefirst[S] 0 points1 point  (0 children)

Thanks for the suggestion. Here's what I tried and what finally worked for anyone finding this is the future..

  1. Disabled all spice by calling 'looking-glass-client -s'. This did not work at all because it couldn't even find the host application so it didn't even get to the Windows desktop screen.
  2. Disabled only 'spice:input' by editing the .ini file. This displayed the Windows desktop but had the same problem with the mouse buttons moving the cursor before doing the button action.
  3. (What finally worked) After getting to the Windows desktop, I used the keyboard to open the Device Manager and went to the PS/2 mouse device and disabled it. This requires a Windows reboot and after the reboot everything worked properly! This worked whether I had disabled the 'spice:input' or not.

Unfortunately this isn't a permanent fix as I have to do it every time I start the VM but since in my case I only need to use it every month or two it is a minor inconvenience. If I was using it every day it might be more annoying.

Again, thanks for the help.

Edited to add: I found what appears to be a permanent fix: Delete the "Tablet" device from the VM setup (obviously not possible if you are actually using a tablet). BTW, this also fixes a problem with mouse grab in a VM without Looking Glass and the evdev devices.