From d0b0b38c8709c9d429b3697aea30814717d802d7 Mon Sep 17 00:00:00 2001 From: Matt Beshara Date: Sat, 2 Oct 2021 14:28:18 +1000 Subject: Explicitly remove workspace frames from client-p cache when deleted * exwm-workspace.el (exwm-workspace--on-delete-frame): Clean up hash table entries upon removing a workspace. --- exwm-workspace.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'exwm-workspace.el') diff --git a/exwm-workspace.el b/exwm-workspace.el index ddf20ea4092e..996d33f4950b 100644 --- a/exwm-workspace.el +++ b/exwm-workspace.el @@ -1469,7 +1469,8 @@ the next workspace." ;; care of converting a workspace into a regular unmanaged frame. (let ((exwm-workspace--create-silently t)) (make-frame))) - (exwm-workspace--remove-frame-as-workspace frame)))) + (exwm-workspace--remove-frame-as-workspace frame) + (remhash frame exwm--client-p-hash-table)))) (defun exwm-workspace--on-after-make-frame (frame) "Hook run upon `make-frame' that configures FRAME as a workspace." -- cgit 1.4.1