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:
parent
4bea5574a5
commit
bc2b63876b
1 changed files with 1 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue