Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Effectively avoiding mouse offset issues in QEMU #2335

Closed
z5241248 opened this issue Jan 3, 2024 · 3 comments
Closed

Effectively avoiding mouse offset issues in QEMU #2335

z5241248 opened this issue Jan 3, 2024 · 3 comments

Comments

@z5241248
Copy link
Contributor

z5241248 commented Jan 3, 2024

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
Copy link
Member

grossmj commented Jan 11, 2024

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

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

@z5241248
Copy link
Contributor Author

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
Copy link
Member

grossmj commented Jan 12, 2024

Merged, thanks 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants