From: Po Lu Date: Tue, 13 Sep 2022 06:28:54 +0000 (+0800) Subject: Fix frames with explicit parent being unmapped after parent shuts down X-Git-Tag: emacs-29.0.90~1856^2~573 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a139748e546b86bef3b85d10b9642d62b3e0d69a;p=emacs.git 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. --- 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