about summary refs log tree commit diff
path: root/exwm-input.el
diff options
context:
space:
mode:
authorChris Feng <chris.w.feng@gmail.com>2015-08-12T23·54+0800
committerChris Feng <chris.w.feng@gmail.com>2015-08-12T23·54+0800
commit35560a49d6c03f96c1f62bfee72ee667cffadb9e (patch)
treeb4921d7a91147186028fc810209e489141878a13 /exwm-input.el
parent04e426961736c67046fa3809fc14f1ac027dae77 (diff)
Minor fixes for emacsclient
Diffstat (limited to 'exwm-input.el')
-rw-r--r--exwm-input.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/exwm-input.el b/exwm-input.el
index 454521f09483..b9a5f206e799 100644
--- a/exwm-input.el
+++ b/exwm-input.el
@@ -175,8 +175,8 @@ It's updated in several occasions, and only used by `exwm-input--set-focus'.")
              ;; Resize
              (exwm-floating--start-moveresize event))
             (t
-             (select-window (get-buffer-window (exwm--id->buffer event)
-                                               'visible))
+             ;; Click to focus
+             (select-window (get-buffer-window (exwm--id->buffer event) t))
              ;; The event should be replayed
              (setq mode xcb:Allow:ReplayPointer))))
     (xcb:+request exwm--connection