]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/frame.el (clone-frame): Filter out 'parent-id' (bug#51883).
authorJuri Linkov <juri@linkov.net>
Thu, 27 Jan 2022 17:47:40 +0000 (19:47 +0200)
committerJuri Linkov <juri@linkov.net>
Thu, 27 Jan 2022 17:47:40 +0000 (19:47 +0200)
lisp/frame.el

index 86c52dc438286eb207fc4ebf75f60fb0ac087951..69119b4c24f5f105710476afc087aacc969ca46b 100644 (file)
@@ -798,8 +798,9 @@ also select the new frame."
          (windows (unless no-windows
                     (window-state-get (frame-root-window frame))))
          (default-frame-alist
-           (seq-remove (lambda (elem) (eq (car elem) 'name))
-                       (frame-parameters frame)))
+          (seq-remove (lambda (elem)
+                        (memq (car elem) '(name parent-id)))
+                      (frame-parameters frame)))
          (new-frame (make-frame)))
     (when windows
       (window-state-put windows (frame-root-window new-frame) 'safe))