Fix face recalculation when frame's background mode changes

* lisp/frame.el (frame-set-background-mode): Use the FRAME
argument instead of the selected frame, when calling
'face-spec-match-p'.  (Bug#43837)
This commit is contained in:
Eli Zaretskii 2020-10-07 10:02:20 +03:00
parent 4bea5574a5
commit bc2b63876b

View 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)