emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/exwm 2ec88bd: * exwm-input.el (exwm-input--update-focus


From: Chris Feng
Subject: [elpa] externals/exwm 2ec88bd: * exwm-input.el (exwm-input--update-focus): Do not update input focus
Date: Tue, 24 May 2016 13:50:43 +0000 (UTC)

branch: externals/exwm
commit 2ec88bd32d0409f182e2532e0763ddb9bc8b21fc
Author: Chris Feng <address@hidden>
Commit: Chris Feng <address@hidden>

    * exwm-input.el (exwm-input--update-focus): Do not update input focus
    when there's an active minibjffer
---
 exwm-input.el |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/exwm-input.el b/exwm-input.el
index 4bf2cd1..4307a18 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]