fix child border in Emacs 28

* eldoc-box.el (eldoc-box--get-frame): Set child-frame-border's
background to border color.
This commit is contained in:
Doug Davis 2021-05-22 14:10:04 -04:00 committed by Yuan Fu
parent f66f8d0641
commit 13d207d408
No known key found for this signature in database
GPG Key ID: 56E19BC57664A442

View File

@ -331,6 +331,10 @@ Checkout `lsp-ui-doc--make-frame', `lsp-ui-doc--move-frame'."
(set-window-dedicated-p window t)
(redirect-frame-focus frame (frame-parent frame))
(set-face-attribute 'internal-border frame :inherit 'eldoc-box-border)
(when (facep 'child-frame-border)
(set-face-background 'child-frame-border
(face-attribute 'eldoc-box-border :background)
frame))
;; set size
(eldoc-box--update-childframe-geometry frame window)
(setq eldoc-box--frame frame)