xwayland: kill xwayland when wayland connection fails
This commit is contained in:
parent
9840150e40
commit
8b9784bb15
6 changed files with 42 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue