From 7a21573ebde3d90128b178ca648b5ce460e51781 Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Fri, 12 Jan 2024 18:33:29 +0100 Subject: [PATCH] Switch to absolute mouse events by default when running in a VM This will transparently release the mouse grab of the VM when leaving the screen edge, making it much easier to quickly switch between the VM and other apps running on the host. --- ps2d/src/state.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ps2d/src/state.rs b/ps2d/src/state.rs index 2496ec2e64..9891cc8e7e 100644 --- a/ps2d/src/state.rs +++ b/ps2d/src/state.rs @@ -46,7 +46,8 @@ impl char> Ps2d { let mut ps2 = Ps2::new(); let extra_packet = ps2.init().expect("ps2d: failed to initialize"); - let vmmouse_relative = true; + // FIXME add an option for orbital to disable this when an app captures the mouse. + let vmmouse_relative = false; let vmmouse = vm::enable(vmmouse_relative); Ps2d {