about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAdrián Medraño Calvo <adrian@medranocalvo.com>2022-11-22T00·00+0000
committerAdrián Medraño Calvo <adrian@medranocalvo.com>2022-11-22T00·00+0000
commit8e0c5ee327f4196c71395407f9084e68d7322c45 (patch)
tree1b325cc57441597db58b1293f3541e87081a0b94
parentac16b9a4686333c6e67e6f2eba3203712ae785c1 (diff)
Reduce logging verbosity
* exwm-input.el (exwm-input--on-echo-area-dirty)
(exwm-input--on-echo-area-clear): Reduce logging verbosity.
-rw-r--r--exwm-input.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/exwm-input.el b/exwm-input.el
index c27ee1b04f..8fd0af50d8 100644
--- a/exwm-input.el
+++ b/exwm-input.el
@@ -1121,16 +1121,16 @@ One use is to access the keymap bound to KEYS (as prefix keys) in char-mode."
 
 (defun exwm-input--on-echo-area-dirty ()
   "Run when new message arrives to grab keyboard if necessary."
-  (exwm--log)
   (when (and (not (active-minibuffer-window))
              (not (exwm-workspace--client-p))
              cursor-in-echo-area)
+    (exwm--log)
     (exwm-input--on-minibuffer-setup)))
 
 (defun exwm-input--on-echo-area-clear ()
   "Run in `echo-area-clear-hook' to release keyboard if necessary."
-  (exwm--log)
   (unless (current-message)
+    (exwm--log)
     (exwm-input--on-minibuffer-exit)))
 
 (defun exwm-input--init ()