diff --git a/src/main.rs b/src/main.rs index 1603cf7..436a011 100644 --- a/src/main.rs +++ b/src/main.rs @@ -22,7 +22,11 @@ fn main() -> Result<()> { height: 1440, }, offset: Offset { - x: dell.resolution.height as isize, + // The '1 +' here creates a gap between the top monitor and side monitor. When all + // monitors have a gap, you can move the mouse between any combo. When the top monitor + // is flush with the left, the bottom monitor will have a hard edge that prevents the + // mouse from moving to the left monitor. + x: 1 + dell.resolution.height as isize, y: 0, }, ..Default::default() @@ -34,8 +38,7 @@ fn main() -> Result<()> { height: 1440, }, offset: Offset { - x: dell.resolution.height as isize, - //x: (dell.resolution.height + (lg.resolution.width - 2560) / 2) as isize, + x: (dell.resolution.height + (lg.resolution.width - 2560) / 2) as isize, y: (lg.resolution.height) as isize, }, ..Default::default()