1
0
Fork 0
forked from wry/wry

xwayland: destroy map_link on window destroy

This commit is contained in:
Julian Orth 2022-06-06 17:16:11 +02:00
parent a39d1868f7
commit f7320d2332

View file

@ -1883,6 +1883,7 @@ impl Wm {
// log::info!("xwm destroy_notify {}", event.window);
data.destroyed.set(true);
data.stack_link.borrow_mut().take();
data.map_link.take();
if let Some(sid) = data.surface_id.take() {
self.windows_by_surface_id.remove(&sid);
}