Skip to content

Commit

Permalink
Update frame background
Browse files Browse the repository at this point in the history
  • Loading branch information
iris-garcia committed Jul 19, 2021
1 parent 156f65c commit 6e92c5b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions company-box.el
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,10 @@ It doesn't nothing if a font icon is used."
(right-fringe . 0)
(left-fringe . 0)))))

(defun company-box--update-frame-background (frame)
(with-selected-frame frame
(set-background-color (face-background 'company-tooltip nil t))))

(defun company-box--display (string on-update)
"Display the completions."
(company-box--render-buffer string on-update)
Expand All @@ -640,6 +644,7 @@ It doesn't nothing if a font icon is used."
(company-box--compute-frame-position (company-box--get-frame))
(company-box--move-selection t)
(company-box--update-frame-position (company-box--get-frame))
(company-box--update-frame-background (company-box--get-frame))
(unless (frame-visible-p (company-box--get-frame))
(make-frame-visible (company-box--get-frame)))
(company-box--update-scrollbar (company-box--get-frame) t)
Expand Down

0 comments on commit 6e92c5b

Please sign in to comment.