branch: externals/exwm
commit 369b4171e8167bab76091f94b8b5b9021976f6cd
Author: Garklein <63201615+garkl...@users.noreply.github.com>
Commit: GitHub <nore...@github.com>

    Avoid sometimes selecting killed buffers (#87)
    
    * exwm-layout.el (exwm-layout--refresh-workspace): avoid selecting deleted 
buffers.
    
    Copyright-paperwork-exempt: yes
---
 exwm-layout.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/exwm-layout.el b/exwm-layout.el
index 5adb54ace9..5a0b217613 100644
--- a/exwm-layout.el
+++ b/exwm-layout.el
@@ -385,6 +385,7 @@ If FRAME is nil, refresh layout of selected frame."
                                     (car-safe (window-prev-buffers window)))))
                   (and
                    prev-buffer
+                   (buffer-live-p prev-buffer)
                    (with-current-buffer prev-buffer
                      (derived-mode-p 'exwm-mode))
                    (push prev-buffer covered-buffers)))))))))

Reply via email to