diff options
author | Steven Allen <steven@stebalien.com> | 2019-10-05T23·28+0900 |
---|---|---|
committer | Steven Allen <steven@stebalien.com> | 2019-10-05T23·28+0900 |
commit | f14bd2a110af927293c23e8ff7aa1e2287120b0d (patch) | |
tree | a54feeeb561b898e4b83a4451b266c8ba1b1fac7 /README.md | |
parent | 1e9be0de384d0750277b350c77e5e4a5d8a8ae10 (diff) |
Set the current buffer before handling key events
There's no guarantee that the global current buffer matches the selected window's buffer. For example, the following will output "*Messages*" regardless of the actual current buffer: (progn (run-at "1 sec" nil (lambda () (with-current-buffer (get-buffer "*Messages*") (sit-for 5)))) (run-at "2 sec" nil (lambda () (message (buffer-name))))) * exwm-input.el (exwm-input--on-KeyPress): Set the current buffer to selected window's current buffer.
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions