doom-visible-windows: support visible window-parameter
This commit is contained in:
parent
abb4d5a009
commit
d0f8bf402a
1 changed files with 2 additions and 1 deletions
|
@ -128,7 +128,8 @@ If DERIVED-P, test with `derived-mode-p', otherwise use `eq'."
|
||||||
(defun doom-visible-windows (&optional window-list)
|
(defun doom-visible-windows (&optional window-list)
|
||||||
"Return a list of the visible, non-popup (dedicated) windows."
|
"Return a list of the visible, non-popup (dedicated) windows."
|
||||||
(cl-loop for window in (or window-list (window-list))
|
(cl-loop for window in (or window-list (window-list))
|
||||||
unless (window-dedicated-p window)
|
when (or (window-parameter window 'visible)
|
||||||
|
(not (window-dedicated-p window)))
|
||||||
collect window))
|
collect window))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue