Fix delegate dispatch for SurfaceUserData

Without this change, the event dispatch would go on forever and cause a
stack overflow
This commit is contained in:
Timmy Xiao authored and Wez Furlong committed 2024-02-03 14:54:45 -07:00
1 parent b01e32b606
commit 21136d2647
1 file changed
+1 -1
+1 -1
View File
@@ -373,7 +373,7 @@ impl ConnectionOps for WaylandConnection {
// Undocumented in sctk 0.17: This is required to use have user data with a surface
// Will be just delegate_compositor!(WaylandState, surface: [SurfaceData, SurfaceUserData]) in 0.18
wayland_client::delegate_dispatch!(WaylandState: [ WlSurface: SurfaceUserData] => WaylandState);
wayland_client::delegate_dispatch!(WaylandState: [ WlSurface: SurfaceUserData] => CompositorState);
delegate_compositor!(WaylandState);
delegate_output!(WaylandState);