Avoid artifacts when changing the frame's background mode

* lisp/frame.el (frame-background-mode): Redraw the entire
display, to avoid leaving artifacts around.  (Bug#81739)
This commit is contained in:
Eli Zaretskii 2026-08-29 14:08:12 +03:00
parent 67efab7637
commit 4e224a7a3f

View file

@ -1490,7 +1490,8 @@ e.g. (mapc \\='frame-set-background-mode (frame-list))."
:group 'faces :group 'faces
:set #'(lambda (var value) :set #'(lambda (var value)
(set-default var value) (set-default var value)
(mapc #'frame-set-background-mode (frame-list))) (mapc #'frame-set-background-mode (frame-list))
(redraw-display))
:initialize #'custom-initialize-changed :initialize #'custom-initialize-changed
:type '(choice (const dark) :type '(choice (const dark)
(const light) (const light)