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
|
|
@ -13,10 +13,7 @@ use {
|
|||
zwp_primary_selection_source_v1::ZwpPrimarySelectionSourceV1,
|
||||
},
|
||||
wl_seat::SeatId,
|
||||
wl_surface::{
|
||||
x_surface::xwindow::{Xwindow, XwindowData},
|
||||
WlSurface,
|
||||
},
|
||||
wl_surface::x_surface::xwindow::{Xwindow, XwindowData},
|
||||
},
|
||||
io_uring::IoUringError,
|
||||
state::State,
|
||||
|
|
@ -273,7 +270,7 @@ async fn log_xwayland(state: Rc<State>, stderr: OwnedFd) {
|
|||
}
|
||||
|
||||
pub enum XWaylandEvent {
|
||||
SurfaceCreated(Rc<WlSurface>),
|
||||
SurfaceCreated(WlSurfaceId),
|
||||
SurfaceDestroyed(WlSurfaceId),
|
||||
Configure(Rc<Xwindow>),
|
||||
Activate(Rc<XwindowData>),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue