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.
This commit is contained in:
Chris Feng 2018-03-23 23:53:05 +08:00
parent b6d660042e
commit 02b1be7160

View file

@ -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'."