emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/exwm c00331a 03/14: Cleanup exwm-layout on exit


From: Chris Feng
Subject: [elpa] externals/exwm c00331a 03/14: Cleanup exwm-layout on exit
Date: Thu, 8 Mar 2018 12:08:06 -0500 (EST)

branch: externals/exwm
commit c00331a7e6e4282ca4e0cf1ee733fe642a6c6721
Author: Adrián Medraño Calvo <address@hidden>
Commit: Adrián Medraño Calvo <address@hidden>

    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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]