From 44629818bacf3e3a10a37e570fdee2e963dbcc7b Mon Sep 17 00:00:00 2001 From: Chris Feng Date: Tue, 5 Feb 2019 00:00:00 +0000 Subject: [PATCH] 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. --- exwm.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exwm.el b/exwm.el index 6f6458d..7affebf 100644 --- a/exwm.el +++ b/exwm.el @@ -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