about summary refs log tree commit diff
path: root/exwm-layout.el
diff options
context:
space:
mode:
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)