From 6829724ac0e7be5e20a1baadc44373900df1be7c Mon Sep 17 00:00:00 2001 From: Ashley Wulber Date: Tue, 29 Apr 2025 13:56:51 -0400 Subject: [PATCH] fix: send pointer motion event for pointer enter event --- winit/src/platform_specific/wayland/sctk_event.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/winit/src/platform_specific/wayland/sctk_event.rs b/winit/src/platform_specific/wayland/sctk_event.rs index ee190a5a..32e2bb4c 100755 --- a/winit/src/platform_specific/wayland/sctk_event.rs +++ b/winit/src/platform_specific/wayland/sctk_event.rs @@ -380,6 +380,17 @@ impl SctkEvent { (variant.position.0, variant.position.1).into(), ) } + events.push(( + id, + iced_runtime::core::Event::Mouse( + mouse::Event::CursorMoved { + position: Point::new( + variant.position.0 as f32, + variant.position.1 as f32, + ), + }, + ), + )); } PointerEventKind::Leave { .. } => events.push(( surface_ids.get(&variant.surface.id()).map(|id| id.inner()),