]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix frames with explicit parent being unmapped after parent shuts down
authorPo Lu <luangruo@yahoo.com>
Tue, 13 Sep 2022 06:28:54 +0000 (14:28 +0800)
committerPo Lu <luangruo@yahoo.com>
Tue, 13 Sep 2022 06:30:09 +0000 (14:30 +0800)
* src/xterm.c (handle_one_xevent): Delete leftover _XEMBED_INFO
property after parent shuts down.

src/xterm.c

index 48502f12d8de363394a3a1d0e8b9bf91b18f3a63..96d25b2643451767dbb9ee5855d938dff773829c 100644 (file)
@@ -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