GNS3 / gns3-server

GNS3 server
GNU General Public License v3.0
768 stars 258 forks source link

Effectively avoiding mouse offset issues in QEMU #2335

Closed z5241248 closed 5 months ago

z5241248 commented 6 months ago

Adding the following sentence can effectively avoid the mouse offset issue in QEMU, and the current testing situation is good

command.extend(['-machine', 'usb=on', '-device', 'usb-tablet'])

图片1

grossmj commented 5 months ago

command.extend(['-machine', 'usb=on', '-device', 'usb-tablet'])

Maybe we should only add this when the console is set to "vnc" or "spice"?

z5241248 commented 5 months ago

Yes, thank you very much.

I only tested on VNC, but after adding this sentence, using Spire did not result in any errors. We can add a judgment before that.

# avoiding mouse offset
if self._console_type == "vnc":
    command.extend(['-machine', 'usb=on', '-device', 'usb-tablet'])
return command

1

grossmj commented 5 months ago

Merged, thanks 👍