@@ -501,7 +501,7 @@ We don't extract the string that `lps-line' is already displaying."
501
501
(lsp-ui-doc--with-buffer
502
502
(fill-region (point-min ) (point-max )))))))
503
503
504
- (defun lsp-ui-doc--mv-at-point (width height start-x start-y )
504
+ (defun lsp-ui-doc--mv-at-point (frame width height start-x start-y )
505
505
" Return position of FRAME to be where the point is.
506
506
WIDTH is the child frame width.
507
507
HEIGHT is the child frame height.
@@ -518,8 +518,8 @@ FRAME just below the symbol at point."
518
518
(posn-x-y (posn-at-point (1- (window-end ))))))))
519
519
(char-width (frame-char-width ))
520
520
(char-height (frame-char-height ))
521
- (sbw (or (window-scroll-bar-width ) 0 ))
522
- (sbh (or (window-scroll-bar-height ) 0 ))
521
+ (sbw (with-selected-frame frame ( or (window-scroll-bar-width ) 0 ) ))
522
+ (sbh (with-selected-frame frame ( or (window-scroll-bar-height ) 0 ) ))
523
523
(frame-relative-symbol-x (+ start-x x (* char-width 2 ) sbw))
524
524
(frame-relative-symbol-y (+ start-y y (- 0 sbh)))
525
525
; ; Make sure the frame is positioned horizontally such that
@@ -555,7 +555,7 @@ FRAME just below the symbol at point."
555
555
('frame (frame-pixel-width ))
556
556
('window right)))
557
557
((left . top) (if (eq lsp-ui-doc-position 'at-point )
558
- (lsp-ui-doc--mv-at-point width height left top)
558
+ (lsp-ui-doc--mv-at-point frame width height left top)
559
559
(cons (pcase lsp-ui-doc-side
560
560
('right (max (- frame-right width char-w) 10 ))
561
561
('left 10 ))
0 commit comments