diff options
author | Chris Feng <chris.w.feng@gmail.com> | 2017-11-19T06·51+0800 |
---|---|---|
committer | Chris Feng <chris.w.feng@gmail.com> | 2017-11-19T06·51+0800 |
commit | 71a39840b239a51eed7455877517ebe612892eff (patch) | |
tree | c1320b3e7c7778e9027d0e2bc7e502d5ee7418bd /exwm-manage.el | |
parent | 55626530f4a523cccd1d24c8819f7e80543e0276 (diff) |
Fix various input focus issues
* exwm-input.el (exwm-input--on-buffer-list-update): Cancel the frame redirection introduced by 421c0512f7. * exwm-input.el (exwm-input--on-buffer-list-update): Only ignore temp buffers just switched from. * exwm-input.el (exwm-input--update-focus-commit): New function for ensuring the input focus lock can always be released. (exwm-input--update-focus-defer, exwm-input--update-focus): Use it. * exwm-input.el (exwm-input--update-focus): No need to select frames; only transfer X input focus. * exwm-core.el (exwm--defer): New macro for correcting the use of `run-with-idle-timer' by taking `current-idle-time' into account. * exwm-input.el (exwm-input--update-focus-defer) (exwm-input--update-focus): * exwm-layout.el (exwm-layout--on-minibuffer-setup) (exwm-layout--on-echo-area-change): * exwm-manage.el (exwm-manage--unmanage-window) (exwm-workspace--prompt-delete): * exwm-workspace.el (exwm-workspace-switch) (exwm-workspace--add-frame-as-workspace): Use it.
Diffstat (limited to 'exwm-manage.el')
-rw-r--r-- | exwm-manage.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/exwm-manage.el b/exwm-manage.el index fffc677c7f0e..2b964756351c 100644 --- a/exwm-manage.el +++ b/exwm-manage.el @@ -410,7 +410,7 @@ manager is shutting down." (select-window (frame-selected-window exwm-workspace--current))) (kill-buffer buffer))))) - (run-with-idle-timer 0 nil kill-buffer-func buffer) + (exwm--defer 0 kill-buffer-func buffer) (when (active-minibuffer-window) (exit-minibuffer)))))) |