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:
parent
6193569596
commit
887fab0936
3 changed files with 8 additions and 7 deletions
|
|
@ -58,7 +58,7 @@ impl WlCompositor {
|
|||
.state
|
||||
.xwayland
|
||||
.queue
|
||||
.push(XWaylandEvent::SurfaceCreated(surface.clone()));
|
||||
.push(XWaylandEvent::SurfaceCreated(surface.id));
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue