Destroy X11Wm when we lose connect to X server
This fixes the issue where X11 windows freeze and can't be closed when Xwayland dies.
This commit is contained in:
parent
4d215755f6
commit
b820c97c66
3 changed files with 29 additions and 23 deletions
|
|
@ -773,4 +773,9 @@ impl XwmHandler for State {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn disconnected(&mut self, _xwm: XwmId) {
|
||||
let xwayland_state = self.common.xwayland_state.as_mut().unwrap();
|
||||
xwayland_state.xwm = None;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue