about summary refs log tree commit diff
path: root/exwm-input.el
diff options
context:
space:
mode:
authorChris Feng <chris.w.feng@gmail.com>2016-02-23T11·04+0800
committerChris Feng <chris.w.feng@gmail.com>2016-02-23T11·04+0800
commit4838f2b7fa2a8f3bdd2a8b2f779039a1b397e12b (patch)
tree551f4658462638398f3e2a63cac2a050d6469653 /exwm-input.el
parent35493faca670738f6078009ec6d9b862721d7ea0 (diff)
Make input focus revert to pointer root
* exwm-input.el (exwm-input--set-focus): Input focus should not revert to
parent (which was the Emacs frame) any more.
Diffstat (limited to 'exwm-input.el')
-rw-r--r--exwm-input.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/exwm-input.el b/exwm-input.el
index 0a50bef26203..943dd7da831f 100644
--- a/exwm-input.el
+++ b/exwm-input.el
@@ -73,7 +73,8 @@ It's updated in several occasions, and only used by `exwm-input--set-focus'.")
         (exwm--log "Focus on #x%x with SetInputFocus" id)
         (xcb:+request exwm--connection
             (make-instance 'xcb:SetInputFocus
-                           :revert-to xcb:InputFocus:Parent :focus id
+                           :revert-to xcb:InputFocus:PointerRoot
+                           :focus id
                            :time xcb:Time:CurrentTime)))
       (xcb:flush exwm--connection))))