Skip to content

Commit

Permalink
fix: exclude tooltip frames in window-number segment
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangou committed Apr 7, 2024
1 parent 47f3490 commit 120f5d3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions doom-modeline-segments.el
Original file line number Diff line number Diff line change
Expand Up @@ -1466,9 +1466,10 @@ one. The ignored buffers are excluded unless `aw-ignore-on' is nil."
(when (and (length> num 0)
(length> (cl-mapcan
(lambda (frame)
;; Exclude minibuffer and child frames
(unless (and (fboundp 'frame-parent)
(frame-parent frame))
;; Exclude minibuffer, tooltip and child frames
(unless (or (and (fboundp 'frame-parent) (frame-parent frame))
(string= (frame-parameter frame 'name)
(alist-get 'name tooltip-frame-parameters)))
(window-list frame 'never)))
(visible-frame-list))
1))
Expand Down

0 comments on commit 120f5d3

Please sign in to comment.