From 99442909bee313c6513c1f292ccc53194a88cf47 Mon Sep 17 00:00:00 2001 From: Daniel Mendler Date: Fri, 15 Mar 2024 19:05:13 +0100 Subject: [PATCH] window-pixel-width-before-size-change is available since Emacs 26 * exwm-layout.el (exwm-layout--init, exwm-layout--exit): Remove fboundp check. --- exwm-layout.el | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/exwm-layout.el b/exwm-layout.el index 8649c11ff..83421b2e9 100644 --- a/exwm-layout.el +++ b/exwm-layout.el @@ -602,9 +602,7 @@ See also `exwm-layout-enlarge-window'." ;; Auto refresh layout (exwm--log) (add-hook 'window-configuration-change-hook #'exwm-layout--refresh) - ;; The behavior of `window-configuration-change-hook' will be changed. - (when (fboundp 'window-pixel-width-before-size-change) - (add-hook 'window-size-change-functions #'exwm-layout--refresh)) + (add-hook 'window-size-change-functions #'exwm-layout--refresh) (unless (exwm-workspace--minibuffer-own-frame-p) ;; Refresh when minibuffer grows (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." (exwm--log) (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) (when exwm-layout--timer (cancel-timer exwm-layout--timer)