1
0
Fork 0
forked from wry/wry

xwayland: don't send raw wl_surface's to xwm

This handles a race where the surface was already destroyed when the
message was handled.
This commit is contained in:
Julian Orth 2022-10-16 20:58:19 +02:00
parent 6193569596
commit 887fab0936
3 changed files with 8 additions and 7 deletions

View file

@ -58,7 +58,7 @@ impl WlCompositor {
.state
.xwayland
.queue
.push(XWaylandEvent::SurfaceCreated(surface.clone()));
.push(XWaylandEvent::SurfaceCreated(surface.id));
}
Ok(())
}