From f7eb2492d977b4779215b9fae33efd100743af6e Mon Sep 17 00:00:00 2001 From: grossmj Date: Fri, 12 Jan 2024 16:18:32 +1100 Subject: [PATCH] Fix mouse offset issues with VNC in Qemu. Fixes #2335 --- gns3server/compute/qemu/qemu_vm.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gns3server/compute/qemu/qemu_vm.py b/gns3server/compute/qemu/qemu_vm.py index 94b50114..63eac753 100644 --- a/gns3server/compute/qemu/qemu_vm.py +++ b/gns3server/compute/qemu/qemu_vm.py @@ -2426,6 +2426,9 @@ class QemuVM(BaseNode): command.extend(shlex.split(additional_options)) except ValueError as e: raise QemuError("Invalid additional options: {} error {}".format(additional_options, e)) + # avoiding mouse offset (see https://github.com/GNS3/gns3-server/issues/2335) + if self._console_type == "vnc": + command.extend(['-machine', 'usb=on', '-device', 'usb-tablet']) return command def __json__(self):