Scan for existing X windows only after running `exwm-init-hook'

* exwm.el (exwm-init): Delay the call to `exwm-manage--scan' since
managing existing X windows too early may result in issues like losing
input focus.
This commit is contained in:
Chris Feng 2019-02-05 00:00:00 +00:00
parent 65d371d55f
commit 44629818ba

View file

@ -833,9 +833,9 @@ manager. If t, replace it, if nil, abort and ask the user if `ask'."
(exwm--unlock)
(exwm-workspace--post-init)
(exwm-input--post-init)
(run-hooks 'exwm-init-hook)
;; Manage existing windows
(exwm-manage--scan)
(run-hooks 'exwm-init-hook))
(exwm-manage--scan))
((quit error)
(exwm-exit)
;; Rethrow error