From b5f0e5a1c508a950a13941e15fc4bd1c1a63bceb Mon Sep 17 00:00:00 2001 From: Alan Third Date: Tue, 6 Oct 2020 21:32:55 +0100 Subject: [PATCH] Prevent mixing of faces from different frames (bug#43837) * lisp/frame.el (frame-set-background-mode): Use the face spec from the frame that's the target of the function instead of the currently selected frame. --- lisp/frame.el | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lisp/frame.el b/lisp/frame.el index 7751ae1303..26b23f8229 100644 --- a/lisp/frame.el +++ b/lisp/frame.el @@ -1247,10 +1247,7 @@ frame-set-background-mode (assq face (frame-face-alist)) (face-spec-match-p face (face-user-default-spec face) - ;; FIXME: why selected-frame and - ;; not the frame that is the - ;; argument to this function? - (selected-frame)))) + frame))) (push face locally-modified-faces))) ;; Now change to the new frame parameters (modify-frame-parameters frame params) -- 2.26.1