From c7d1fd45bcf586e4b62daa94662dfe529cb04ac9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Medra=C3=B1o=20Calvo?= Date: Fri, 18 Aug 2023 00:00:00 +0000 Subject: [PATCH] Fix layout being refreshed too often on minibuffer setup The guard clause was refacored incorrectly, leading to it having no effect on the intended forms. * exwm-layout.el (exwm-layout--on-minibuffer-setup): Guard `exwm-layout--refresh' again. --- exwm-layout.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exwm-layout.el b/exwm-layout.el index 5666818..d785a71 100644 --- a/exwm-layout.el +++ b/exwm-layout.el @@ -408,8 +408,8 @@ selected by `other-buffer'." (frame (window-frame mini-window))) (when (exwm-workspace--workspace-p frame) (exwm--defer 0 (lambda () - (when (< 1 (window-height mini-window))) - (exwm-layout--refresh frame)))))) + (when (< 1 (window-height mini-window)) + (exwm-layout--refresh frame))))))) (defun exwm-layout--on-echo-area-change (&optional dirty) "Run when message arrives or in `echo-area-clear-hook' to refresh layout."