From 8061e93878440a386a5fe308b0829e707e5f8c9d Mon Sep 17 00:00:00 2001 From: Chris Feng Date: Sat, 30 Jul 2016 18:57:27 +0800 Subject: [PATCH] ; * exwm-workspace.el (exwm-workspace-switch): Input focus should be set ; on the frame where the target window resides. --- exwm-workspace.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exwm-workspace.el b/exwm-workspace.el index 98c1148..ce2ed6f 100644 --- a/exwm-workspace.el +++ b/exwm-workspace.el @@ -463,7 +463,7 @@ The optional FORCE option is for internal use only." (set-frame-parameter (buffer-local-value 'exwm--frame (window-buffer)) 'exwm-selected-window (selected-window))) (select-window window) - (x-focus-frame frame) ;essential for transferring input focus + (x-focus-frame (window-frame window)) ;The real input focus. (set-frame-parameter frame 'exwm-selected-window nil) ;; Close the (possible) active minibuffer (when (active-minibuffer-window)