1
0
Fork 0
forked from wry/wry

xwayland: kill xwayland when wayland connection fails

This commit is contained in:
Julian Orth 2025-05-04 19:02:35 +02:00
parent 9840150e40
commit 8b9784bb15
6 changed files with 42 additions and 1 deletions

View file

@ -121,6 +121,7 @@ use {
time::Duration,
},
thiserror::Error,
uapi::OwnedFd,
};
pub struct State {
@ -261,6 +262,7 @@ pub struct ScreenlockState {
pub struct XWaylandState {
pub enabled: Cell<bool>,
pub pidfd: CloneCell<Option<Rc<OwnedFd>>>,
pub handler: RefCell<Option<SpawnedFuture<()>>>,
pub queue: Rc<AsyncQueue<XWaylandEvent>>,
pub ipc_device_ids: XIpcDeviceIds,