diff options
author | Chris Feng <chris.w.feng@gmail.com> | 2016-05-24T13·49+0800 |
---|---|---|
committer | Chris Feng <chris.w.feng@gmail.com> | 2016-05-24T13·50+0800 |
commit | 2ec88bd32d0409f182e2532e0763ddb9bc8b21fc (patch) | |
tree | cd3d8eb33a0edf4337c8ed02e24641bfcfc5ba27 | |
parent | 3dba5f156f2670f6226db80281a5879762259154 (diff) |
* exwm-input.el (exwm-input--update-focus): Do not update input focus
when there's an active minibjffer
-rw-r--r-- | exwm-input.el | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/exwm-input.el b/exwm-input.el index 4bf2cd1ae892..4307a187a65e 100644 --- a/exwm-input.el +++ b/exwm-input.el @@ -101,7 +101,9 @@ It's updated in several occasions, and only used by `exwm-input--set-focus'.") (defun exwm-input--update-focus () "Update input focus." - (when (window-live-p exwm-input--focus-window) + (when (and (window-live-p exwm-input--focus-window) + ;; Do not update input focus when there's an active minibuffer. + (not (active-minibuffer-window))) (with-current-buffer (window-buffer exwm-input--focus-window) (if (eq major-mode 'exwm-mode) (if (not (eq exwm--frame exwm-workspace--current)) @@ -308,6 +310,10 @@ It's updated in several occasions, and only used by `exwm-input--set-focus'.") (setq event (xcb:keysyms:keysym->event exwm--connection keysym state))) (when (eq major-mode 'exwm-mode) + ;; FIXME: This functionality seems not working, e.g. when this + ;; command would activate the minibuffer, the temporary + ;; line-mode would actually quit before the minibuffer + ;; becomes active. (setq exwm-input--temp-line-mode t exwm-input--during-key-sequence t) (exwm-input--grab-keyboard)) ;grab keyboard temporarily |