branch: externals/exwm
commit c00331a7e6e4282ca4e0cf1ee733fe642a6c6721
Author: Adrián Medraño Calvo <[email protected]>
Commit: Adrián Medraño Calvo <[email protected]>
Cleanup exwm-layout on exit
* exwm-layout.el (exwm-layout--exit): Remove
`window-pixel-width-before-size-change' hook.
---
exwm-layout.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/exwm-layout.el b/exwm-layout.el
index 998556b..babd374 100644
--- a/exwm-layout.el
+++ b/exwm-layout.el
@@ -514,6 +514,8 @@ See also `exwm-layout-enlarge-window'."
(defun exwm-layout--exit ()
"Exit the layout module."
(remove-hook 'window-configuration-change-hook #'exwm-layout--refresh)
+ (when (fboundp 'window-pixel-width-before-size-change)
+ (remove-hook 'window-size-change-functions #'exwm-layout--refresh))
(remove-hook 'minibuffer-setup-hook #'exwm-layout--on-minibuffer-setup)
(when exwm-layout--timer
(cancel-timer exwm-layout--timer)