From 6200417697544317ee91badd702654def9a1d645 Mon Sep 17 00:00:00 2001 From: Chris Feng Date: Thu, 22 Feb 2018 00:26:04 +0800 Subject: Grab global keys on top-level X windows * exwm-input.el (exwm-input--on-CreateNotify): New function for grabbing global keys on newly created X windows. (exwm-input--update-global-prefix-keys): Grab global keys on top-level X windows instead of the root window. (exwm-input--grab-global-prefix-keys): New function for grabbing global keys on X windows. (exwm-input--release-keyboard): Grab global keys in char-mode. (exwm-input--init): Select CreateNotify events. * exwm-core.el (exwm--unlock): * exwm-input.el (exwm-input--on-FocusIn, exwm-input--init): Do not handle FocusIn events on the root window. --- exwm-core.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'exwm-core.el') diff --git a/exwm-core.el b/exwm-core.el index f64a7f25fa31..41c3b5772495 100644 --- a/exwm-core.el +++ b/exwm-core.el @@ -93,8 +93,7 @@ :window exwm--root :value-mask xcb:CW:EventMask :event-mask (eval-when-compile - (logior xcb:EventMask:FocusChange - xcb:EventMask:SubstructureRedirect + (logior xcb:EventMask:SubstructureRedirect xcb:EventMask:StructureNotify)))) (xcb:flush exwm--connection)) -- cgit 1.4.1