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.
This commit is contained in:
+2
-1
@@ -46,7 +46,8 @@ impl<F: Fn(u8,bool) -> char> Ps2d<F> {
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user