about summary refs log tree commit diff
path: root/exwm-input.el
diff options
context:
space:
mode:
authorChris Feng <chris.w.feng@gmail.com>2018-03-23T15·53+0800
committerChris Feng <chris.w.feng@gmail.com>2018-03-23T15·53+0800
commit02b1be7160051610a542764ec392e3a50f23fb5a (patch)
tree9ccc3b7f84c44396d702aac95ca1cebc739a6d96 /exwm-input.el
parentb6d660042e8f949890e6b4d5c397235d1653fdfe (diff)
Avoid entering line-mode after exit minibuffer
* exwm-input.el (exwm-input--on-pre-command): Keys should be forwarded
to the X window (if its Emacs window is currently selected) after
exiting the minibuffer.
Diffstat (limited to 'exwm-input.el')
-rw-r--r--exwm-input.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/exwm-input.el b/exwm-input.el
index 4c1ce00b12..504307768c 100644
--- a/exwm-input.el
+++ b/exwm-input.el
@@ -902,7 +902,8 @@ where both ORIGINAL-KEY and SIMULATED-KEY are key sequences."
 
 (defun exwm-input--on-pre-command ()
   "Run in `pre-command-hook'."
-  (setq exwm-input--during-command t))
+  (unless (eq this-command #'exit-minibuffer)
+    (setq exwm-input--during-command t)))
 
 (defun exwm-input--on-post-command ()
   "Run in `post-command-hook'."