; * exwm-workspace.el (exwm-workspace-switch): Input focus should be set

; on the frame where the target window resides.
This commit is contained in:
Chris Feng 2016-07-30 18:57:27 +08:00
parent a9b775638d
commit 8061e93878

View file

@ -463,7 +463,7 @@ The optional FORCE option is for internal use only."
(set-frame-parameter (buffer-local-value 'exwm--frame (window-buffer)) (set-frame-parameter (buffer-local-value 'exwm--frame (window-buffer))
'exwm-selected-window (selected-window))) 'exwm-selected-window (selected-window)))
(select-window 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) (set-frame-parameter frame 'exwm-selected-window nil)
;; Close the (possible) active minibuffer ;; Close the (possible) active minibuffer
(when (active-minibuffer-window) (when (active-minibuffer-window)