From a139748e546b86bef3b85d10b9642d62b3e0d69a Mon Sep 17 00:00:00 2001 From: Po Lu Date: Tue, 13 Sep 2022 14:28:54 +0800 Subject: [PATCH] Fix frames with explicit parent being unmapped after parent shuts down * src/xterm.c (handle_one_xevent): Delete leftover _XEMBED_INFO property after parent shuts down. --- src/xterm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xterm.c b/src/xterm.c index 48502f12d8d..96d25b26434 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -18490,6 +18490,10 @@ handle_one_xevent (struct x_display_info *dpyinfo, during the start of save-set processing. */ FRAME_X_OUTPUT (f)->explicit_parent = false; + + /* Remove the leftover XEMBED_INFO property. */ + XDeleteProperty (dpyinfo->display, FRAME_OUTER_WINDOW (f), + dpyinfo->Xatom_XEMBED_INFO); x_make_frame_visible (f); } #endif -- 2.39.2