]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix face recalculation when frame's background mode changes
authorEli Zaretskii <eliz@gnu.org>
Wed, 7 Oct 2020 07:02:20 +0000 (10:02 +0300)
committerEli Zaretskii <eliz@gnu.org>
Wed, 7 Oct 2020 07:02:20 +0000 (10:02 +0300)
* lisp/frame.el (frame-set-background-mode): Use the FRAME
argument instead of the selected frame, when calling
'face-spec-match-p'.  (Bug#43837)

lisp/frame.el

index 7751ae1303f6cd36c23913f493ea06aad80934e5..26b23f82292cf60ef0639d0e14e12f251405dfe4 100644 (file)
@@ -1247,10 +1247,7 @@ face specs for the new 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)