about summary refs log tree commit diff
path: root/exwm-layout.el
diff options
context:
space:
mode:
authorAdrián Medraño Calvo <adrian@medranocalvo.com>2018-03-06T00·00+0000
committerAdrián Medraño Calvo <adrian@medranocalvo.com>2018-03-06T00·00+0000
commitc00331a7e6e4282ca4e0cf1ee733fe642a6c6721 (patch)
treea8f955e4823791912a1b519ce13cd72befc1d94c /exwm-layout.el
parent81529c2e89e1a9ea757428d47de2a65211095d45 (diff)
Cleanup exwm-layout on exit
* exwm-layout.el (exwm-layout--exit): Remove
`window-pixel-width-before-size-change' hook.
Diffstat (limited to 'exwm-layout.el')
-rw-r--r--exwm-layout.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/exwm-layout.el b/exwm-layout.el
index 998556bc896f..babd37410a28 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)