Avoid checking `*temp*' buffers

* exwm-input.el (exwm-input--on-buffer-list-update): The way of
detecting a switch from a `*temp*' buffer does not always work.
Disable it until we find a better way.
This commit is contained in:
Chris Feng 2019-08-11 00:00:00 +00:00
parent 1f2bd54c11
commit a1cf0d9b85

View file

@ -277,11 +277,7 @@ ARGS are additional arguments to CALLBACK."
(when (and (not (eq this-command #'handle-switch-frame))
(not exwm-input--skip-buffer-list-update)
(not (exwm-workspace--client-p))
;; The following conditions filter out events relating to temp
;; buffers.
(eq (current-buffer) (window-buffer))
(not (string-prefix-p " *temp*"
(buffer-name (car (last (buffer-list)))))))
(eq (current-buffer) (window-buffer)))
(exwm--log "current-buffer=%S selected-window=%S"
(current-buffer) (selected-window))
(redirect-frame-focus (selected-frame) nil)