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:
1 parent
b01e32b606
commit
21136d2647
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user