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

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

[elpa] externals/exwm dea874e: Filter out events relating to temp buffer


From: Chris Feng
Subject: [elpa] externals/exwm dea874e: Filter out events relating to temp buffers
Date: Sun, 5 Nov 2017 09:35:24 -0500 (EST)

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

    Filter out events relating to temp buffers
    
    * exwm-input.el (exwm-input--on-buffer-list-update): Filter out events
    relating to temp buffers by detecting if temp-buffer is present.
---
 exwm-input.el | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/exwm-input.el b/exwm-input.el
index d14b0b5..bee2ac6 100644
--- a/exwm-input.el
+++ b/exwm-input.el
@@ -153,9 +153,12 @@ This value should always be overwritten.")
 
 (defun exwm-input--on-buffer-list-update ()
   "Run in `buffer-list-update-hook' to track input focus."
-  (when (and (eq (current-buffer) (window-buffer)) ;e.g. `with-temp-buffer'.
-             (not (eq this-command #'handle-switch-frame))
-             (not (exwm-workspace--client-p)))
+  (when (and (not (eq this-command #'handle-switch-frame))
+             (not (exwm-workspace--client-p))
+             ;; The following conditions filter out events relating to temp
+             ;; buffers.
+             (eq (current-buffer) (window-buffer))
+             (not (get-buffer " *temp*")))
     (setq exwm-input--update-focus-window (selected-window))
     (exwm-input--update-focus-defer)))
 



reply via email to

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