mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-25 00:08:11 +00:00
Fix mouse offset issues with VNC in Qemu. Fixes #2335
This commit is contained in:
parent
2789b3802a
commit
6a069d0af6
@ -2426,6 +2426,9 @@ class QemuVM(BaseNode):
|
|||||||
command.extend(shlex.split(additional_options))
|
command.extend(shlex.split(additional_options))
|
||||||
except ValueError as e:
|
except ValueError as e:
|
||||||
raise QemuError("Invalid additional options: {} error {}".format(additional_options, 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
|
return command
|
||||||
|
|
||||||
def __json__(self):
|
def __json__(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user