From c00331a7e6e4282ca4e0cf1ee733fe642a6c6721 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Medra=C3=B1o=20Calvo?= Date: Tue, 6 Mar 2018 00:00:00 +0000 Subject: [PATCH] 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)