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.
This commit is contained in:
Matt Beshara 2021-10-02 14:28:18 +10:00 committed by Adrián Medraño Calvo
parent 8905e85d34
commit d0b0b38c87

View file

@ -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."