branch: elpa/workroom
commit bb74cce814ff2d873235a26f003cea57089333d0
Author: Akib Azmain Turja <a...@disroot.org>
Commit: Akib Azmain Turja <a...@disroot.org>

    Fix error when a frame is killed
---
 workroom.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/workroom.el b/workroom.el
index 7091645b85..e3f9fdb874 100644
--- a/workroom.el
+++ b/workroom.el
@@ -404,7 +404,7 @@ written to a string (or file) and read back.
 
 This is expensive, because it can recalculate the window configuration
 and returns a copy of it."
-  (when (workroom--view-frame view)
+  (when (frame-live-p (workroom--view-frame view))
     (setf (workroom--view-window-config (workroom-current-view))
           (workroom--frame-window-config
            (workroom--view-frame view)))

Reply via email to