screencopy: Fix cursor events for absolute motion

This commit is contained in:
Victoria Brekenfeld 2023-01-23 20:32:10 +01:00
parent 9b1221edc5
commit 0af8d5eb2d

View file

@ -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,