mirror of
https://github.com/ch11ng/exwm.git
synced 2024-11-23 19:47:58 +01:00
Cleanup exwm-layout on exit
* exwm-layout.el (exwm-layout--exit): Remove `window-pixel-width-before-size-change' hook.
This commit is contained in:
parent
81529c2e89
commit
c00331a7e6
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue