mirror of
https://github.com/emacs-exwm/exwm.git
synced 2024-11-23 13:07:59 +01:00
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.
This commit is contained in:
parent
3edf2e8880
commit
dea874e240
1 changed files with 6 additions and 3 deletions
|
@ -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)))
|
||||
|
||||
|
|
Loading…
Reference in a new issue