From 0af8d5eb2d7d43a42d2719403de669fcf5fb3599 Mon Sep 17 00:00:00 2001 From: Victoria Brekenfeld Date: Mon, 23 Jan 2023 20:32:10 +0100 Subject: [PATCH] screencopy: Fix cursor events for absolute motion --- src/input/mod.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/input/mod.rs b/src/input/mod.rs index d4256c3d..e59e3c24 100644 --- a/src/input/mod.rs +++ b/src/input/mod.rs @@ -371,6 +371,19 @@ impl State { geometry, &workspace, ); + + for session in sessions_for_output(&self.common, &output) { + if let Some((geometry, offset)) = seat.cursor_geometry( + position.to_buffer( + output.current_scale().fractional_scale(), + output.current_transform(), + &output.geometry().size.to_f64(), + ), + self.common.clock.now(), + ) { + session.cursor_info(seat, InputType::Pointer, geometry, offset); + } + } seat.get_pointer().unwrap().motion( self, under,