about summary refs log tree commit diff
path: root/exwm-core.el
diff options
context:
space:
mode:
authorChris Feng <chris.w.feng@gmail.com>2018-02-20T14·21+0800
committerChris Feng <chris.w.feng@gmail.com>2018-02-20T14·24+0800
commit86f2215be3db25a6b6aacd6f8b0cb132b049e034 (patch)
treef13e586d097a075b18c8ad5d9db1babe5c6f325a /exwm-core.el
parentc821f76dfef9d7592b263f8fea789b6da7fbddf4 (diff)
Fix unexpected focus change after a global key binding is activated
* exwm-core.el (exwm--unlock): Select FocusChange events on the root
window.

* exwm-input.el (exwm-input--on-FocusIn): Input focus should stay on
the current workspace when the root window receives a FocusIn event.
Diffstat (limited to 'exwm-core.el')
-rw-r--r--exwm-core.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/exwm-core.el b/exwm-core.el
index 41c3b5772495..f64a7f25fa31 100644
--- a/exwm-core.el
+++ b/exwm-core.el
@@ -93,7 +93,8 @@
                      :window exwm--root
                      :value-mask xcb:CW:EventMask
                      :event-mask (eval-when-compile
-                                   (logior xcb:EventMask:SubstructureRedirect
+                                   (logior xcb:EventMask:FocusChange
+                                           xcb:EventMask:SubstructureRedirect
                                            xcb:EventMask:StructureNotify))))
   (xcb:flush exwm--connection))