From 369b4171e8167bab76091f94b8b5b9021976f6cd Mon Sep 17 00:00:00 2001 From: Garklein <63201615+Garklein@users.noreply.github.com> Date: Mon, 18 Nov 2024 04:04:16 -0500 Subject: [PATCH] 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 5adb54a..5a0b217 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)))))))))