about summary refs log tree commit diff
path: root/exwm-layout.el
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2024-03-15T18·05+0100
committerDaniel Mendler <mail@daniel-mendler.de>2024-03-15T18·08+0100
commit99442909bee313c6513c1f292ccc53194a88cf47 (patch)
tree5543684ae4d3576e617f872705c536aedcb51992 /exwm-layout.el
parent1ebd135f4586c0f4445d12690a8bf94e8f7683a2 (diff)
window-pixel-width-before-size-change is available since Emacs 26
* exwm-layout.el (exwm-layout--init, exwm-layout--exit): Remove fboundp check.
Diffstat (limited to 'exwm-layout.el')
-rw-r--r--exwm-layout.el7
1 files changed, 2 insertions, 5 deletions
diff --git a/exwm-layout.el b/exwm-layout.el
index 8649c11ffd42..83421b2e9975 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)