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:
Ian Douglas Scott 2024-09-05 19:30:23 -07:00 committed by Victoria Brekenfeld
parent 4d215755f6
commit b820c97c66
3 changed files with 29 additions and 23 deletions

View file

@ -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;
}
}