From 88693093c6c5f19605c3357b5423de1acf81a9ca Mon Sep 17 00:00:00 2001 From: Ferdinand Schober Date: Fri, 8 Nov 2024 13:59:20 +0100 Subject: [PATCH] revert to 1px --- input-capture/src/libei.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/input-capture/src/libei.rs b/input-capture/src/libei.rs index 8b6917c..ceb02b6 100644 --- a/input-capture/src/libei.rs +++ b/input-capture/src/libei.rs @@ -477,10 +477,10 @@ async fn release_capture<'a>( log::debug!("client entered @ ({x}, {y})"); let (dx, dy) = match current_pos { // offset cursor position to not enter again immediately - Position::Left => (10., 0.), - Position::Right => (-10., 0.), - Position::Top => (0., 10.), - Position::Bottom => (0., -10.), + Position::Left => (1., 0.), + Position::Right => (-1., 0.), + Position::Top => (0., 1.), + Position::Bottom => (0., -1.), }; // release 1px to the right of the entered zone let cursor_position = (x as f64 + dx, y as f64 + dy);