emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/window-commander 5d1ea190ab 011/170: Only display a mod


From: ELPA Syncer
Subject: [elpa] externals/window-commander 5d1ea190ab 011/170: Only display a mode line lighter for tracked windows
Date: Wed, 28 Jun 2023 19:00:20 -0400 (EDT)

branch: externals/window-commander
commit 5d1ea190abdc7093a8bfb20ca98b06cb2e3ffe8e
Author: Daniel Semyonov <cmstr@dsemy.com>
Commit: Daniel Semyonov <cmstr@dsemy.com>

    Only display a mode line lighter for tracked windows
    
    * swsw.el (swsw-mode): Add a check to disable displaying a mode line
    lighter for windows which don't appear in 'swsw-window-list'.
---
 swsw.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/swsw.el b/swsw.el
index 769f3a06cf..38d6683a26 100644
--- a/swsw.el
+++ b/swsw.el
@@ -85,8 +85,9 @@ line update for all windows."
 (define-minor-mode swsw-mode
   "Minor mode for selecting windows by their ID."
   :global t
-  :lighter (:eval (format swsw-mode-lighter-format
-                          (window-parameter (selected-window) 'swsw-id)))
+  :lighter (:eval (when (rassq (selected-window) swsw-window-list)
+                    (format swsw-mode-lighter-format
+                            (window-parameter (selected-window) 'swsw-id))))
   (if swsw-mode
       (progn
         (walk-windows #'swsw-update nil t)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]