From f7320d2332efe685057f5d8c3077d0ad6a566a95 Mon Sep 17 00:00:00 2001 From: Julian Orth Date: Mon, 6 Jun 2022 17:16:11 +0200 Subject: [PATCH] xwayland: destroy map_link on window destroy --- src/xwayland/xwm.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/xwayland/xwm.rs b/src/xwayland/xwm.rs index 5c43304d..13aff519 100644 --- a/src/xwayland/xwm.rs +++ b/src/xwayland/xwm.rs @@ -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); }