From 120f5d314a86fba7ff7f0ff805d7c5bcae962806 Mon Sep 17 00:00:00 2001 From: zhangou Date: Sun, 7 Apr 2024 19:08:26 +0800 Subject: [PATCH] fix: exclude tooltip frames in window-number segment --- doom-modeline-segments.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index 0fb4911b..bb2cdd18 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -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))