From 70b9736dc7462f5db1581e595a1689a0f4ec3d22 Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Thu, 18 Sep 2025 14:30:00 -0700 Subject: [PATCH] iced/winit: Add surface id to `OverlapNotify` events --- core/src/event/wayland/mod.rs | 2 +- winit/src/platform_specific/wayland/sctk_event.rs | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/core/src/event/wayland/mod.rs b/core/src/event/wayland/mod.rs index ef7ffa31..03e74407 100644 --- a/core/src/event/wayland/mod.rs +++ b/core/src/event/wayland/mod.rs @@ -31,7 +31,7 @@ pub enum Event { /// output event Output(OutputEvent, WlOutput), /// Overlap notify event - OverlapNotify(overlap_notify::OverlapNotifyEvent), + OverlapNotify(overlap_notify::OverlapNotifyEvent, WlSurface, Id), /// window event Window(WindowEvent), /// Seat Event diff --git a/winit/src/platform_specific/wayland/sctk_event.rs b/winit/src/platform_specific/wayland/sctk_event.rs index 229513a9..e5f89aa6 100755 --- a/winit/src/platform_specific/wayland/sctk_event.rs +++ b/winit/src/platform_specific/wayland/sctk_event.rs @@ -1399,6 +1399,8 @@ impl SctkEvent { toplevel, logical_rect, }, + surface, + id.inner(), ), ), ), @@ -1415,6 +1417,8 @@ impl SctkEvent { OverlapNotifyEvent::OverlapToplevelRemove { toplevel, }, + surface, + id.inner(), ), ), ), @@ -1442,6 +1446,8 @@ impl SctkEvent { layer, logical_rect, }, + surface, + id.inner(), ), ), ), @@ -1461,6 +1467,8 @@ impl SctkEvent { OverlapNotifyEvent::OverlapLayerRemove { identifier, }, + surface, + id.inner(), ), ), ),