From 86f2215be3db25a6b6aacd6f8b0cb132b049e034 Mon Sep 17 00:00:00 2001 From: Chris Feng Date: Tue, 20 Feb 2018 22:21:02 +0800 Subject: 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. --- exwm-core.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'exwm-core.el') 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)) -- cgit 1.4.1