mirror of
https://github.com/emacs-exwm/exwm.git
synced 2024-11-23 21:17:59 +01:00
window-pixel-width-before-size-change is available since Emacs 26
* exwm-layout.el (exwm-layout--init, exwm-layout--exit): Remove fboundp check.
This commit is contained in:
parent
1ebd135f45
commit
99442909be
1 changed files with 2 additions and 5 deletions
|
@ -602,9 +602,7 @@ See also `exwm-layout-enlarge-window'."
|
||||||
;; Auto refresh layout
|
;; Auto refresh layout
|
||||||
(exwm--log)
|
(exwm--log)
|
||||||
(add-hook 'window-configuration-change-hook #'exwm-layout--refresh)
|
(add-hook 'window-configuration-change-hook #'exwm-layout--refresh)
|
||||||
;; The behavior of `window-configuration-change-hook' will be changed.
|
(add-hook 'window-size-change-functions #'exwm-layout--refresh)
|
||||||
(when (fboundp 'window-pixel-width-before-size-change)
|
|
||||||
(add-hook 'window-size-change-functions #'exwm-layout--refresh))
|
|
||||||
(unless (exwm-workspace--minibuffer-own-frame-p)
|
(unless (exwm-workspace--minibuffer-own-frame-p)
|
||||||
;; Refresh when minibuffer grows
|
;; Refresh when minibuffer grows
|
||||||
(add-hook 'minibuffer-setup-hook #'exwm-layout--on-minibuffer-setup t)
|
(add-hook 'minibuffer-setup-hook #'exwm-layout--on-minibuffer-setup t)
|
||||||
|
@ -616,8 +614,7 @@ See also `exwm-layout-enlarge-window'."
|
||||||
"Exit the layout module."
|
"Exit the layout module."
|
||||||
(exwm--log)
|
(exwm--log)
|
||||||
(remove-hook 'window-configuration-change-hook #'exwm-layout--refresh)
|
(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 'window-size-change-functions #'exwm-layout--refresh))
|
|
||||||
(remove-hook 'minibuffer-setup-hook #'exwm-layout--on-minibuffer-setup)
|
(remove-hook 'minibuffer-setup-hook #'exwm-layout--on-minibuffer-setup)
|
||||||
(when exwm-layout--timer
|
(when exwm-layout--timer
|
||||||
(cancel-timer exwm-layout--timer)
|
(cancel-timer exwm-layout--timer)
|
||||||
|
|
Loading…
Reference in a new issue