about summary refs log tree commit diff
path: root/exwm-workspace.el
diff options
context:
space:
mode:
authorChris Feng <chris.w.feng@gmail.com>2016-07-30T10·57+0800
committerChris Feng <chris.w.feng@gmail.com>2016-07-30T10·57+0800
commit8061e93878440a386a5fe308b0829e707e5f8c9d (patch)
tree97461d2f400585c204233be248613af68c0663d0 /exwm-workspace.el
parenta9b775638d06d2fccd908d3546ef0a5ebd855800 (diff)
; * exwm-workspace.el (exwm-workspace-switch): Input focus should be set
; on the frame where the target window resides.
Diffstat (limited to 'exwm-workspace.el')
-rw-r--r--exwm-workspace.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/exwm-workspace.el b/exwm-workspace.el
index 98c114813b49..ce2ed6f6454a 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)