Skip to content

Commit

Permalink
Fix mouse offset issues with VNC in Qemu. Fixes #2335
Browse files Browse the repository at this point in the history
  • Loading branch information
grossmj committed Jan 28, 2024
1 parent 218522b commit f7eb249
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gns3server/compute/qemu/qemu_vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -2426,6 +2426,9 @@ async def _build_command(self):
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):
Expand Down

0 comments on commit f7eb249

Please sign in to comment.