File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 130
130
(defun jcs-poptip--pre ()
131
131
" Register for next pre command."
132
132
(when-let* (((not (minibufferp )))
133
- ((not (memq this-command '( jcs-poptip-focus jcs-poptip-focus-frame))))
133
+ ((not (memq this-command '( jcs-poptip-focus jcs-poptip-focus-frame
134
+ handle-switch-frame))))
134
135
(buffer (window-buffer (jcs-poptip--posframe-window)))
135
136
((not (equal (current-buffer ) buffer))))
136
137
(add-hook 'post-command-hook #'jcs-poptip--next-post )
@@ -156,10 +157,12 @@ forever delay. HEIGHT of the tooltip that will display."
156
157
:internal-border-width 1
157
158
:internal-border-color (face-foreground 'font-lock-comment-face nil t )
158
159
:left-fringe fringe-width :right-fringe fringe-width
159
- :override-parameters '((vertical-scroll-bars . t ))))
160
+ :override-parameters '((vertical-scroll-bars . t ))
161
+ :accept-focus t ))
160
162
(with-current-buffer (get-buffer-create jcs-poptip--buffer-name)
161
163
(setq-local buffer-read-only t
162
164
cursor-type 'hbar ))
165
+ (select-frame-set-input-focus (frame-parent jcs-poptip-frame))
163
166
(add-hook 'pre-command-hook #'jcs-poptip--pre ))
164
167
(t
165
168
(popup-tip string :point point :around t :height height :scroll-bar t :margin t )))
You can’t perform that action at this time.
0 commit comments